Skip to content

Commit

Permalink
Merge pull request #1136 from qdrant/jdm-content-optimization
Browse files Browse the repository at this point in the history
[SEO] Content Optimizations
  • Loading branch information
davidmyriel authored Sep 5, 2024
2 parents 9c3ae0d + 40800b1 commit 006cf08
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 23 deletions.
14 changes: 14 additions & 0 deletions qdrant-landing/content/articles/why-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ keywords: rust, programming, development
aliases: [ /articles/why_rust/ ]
---

# Building Qdrant in Rust

Looking at the [github repository](https://github.com/qdrant/qdrant), you can see that Qdrant is built in [Rust](https://rust-lang.org). Other offerings may be written in C++, Go, Java or even Python. So why does Qdrant chose Rust? Our founder Andrey had built the first prototype in C++, but didn’t trust his command of the language to scale to a production system (to be frank, he likened it to cutting his leg off). He was well versed in Java and Scala and also knew some Python. However, he considered neither a good fit:

**Java** is also more than 30 years old now. With a throughput-optimized VM it can often at least play in the same ball park as native services, and the tooling is phenomenal. Also portability is surprisingly good, although the GC is not suited for low-memory applications and will generally take good amount of RAM to deliver good performance. That said, the focus on throughput led to the dreaded GC pauses that cause latency spikes. Also the fat runtime incurs high start-up delays, which need to be worked around.
Expand Down Expand Up @@ -44,3 +46,15 @@ The job market for Rust programmers is certainly not as big as that for Java or
Finally, the Rust community is a very friendly bunch, and we are delighted to be part of that. And we don’t seem to be alone. Most large IT companies (notably Amazon, Google, Huawei, Meta and Microsoft) have already started investing in Rust. It’s in the Windows font system already and in the process of coming to the Linux kernel (build support has already been included). In machine learning applications, Rust has been tried and proven by the likes of Aleph Alpha and Huggingface, among many others.

To sum up, choosing Rust was a lucky guess that has brought huge benefits to Qdrant. Rust continues to be our not-so-secret weapon.

### Key Takeaways:

- **Rust's Advantages for Qdrant:** Rust provides memory safety and control without a garbage collector, which is crucial for Qdrant's high-performance cloud services.

- **Low Overhead:** Qdrant's Rust-based system offers efficiency, with small Docker container sizes and robust performance benchmarks.

- **Complexity vs. Simplicity:** Rust's strict type system reduces bugs early in development, making it faster in the long run despite initial learning curves.

- **Adoption by Major Players:** Large tech companies like Amazon, Google, and Microsoft are embracing Rust, further validating Qdrant's choice.

- **Community and Talent:** The supportive Rust community and increasing availability of Rust developers make it easier for Qdrant to grow and innovate.
Loading

0 comments on commit 006cf08

Please sign in to comment.