NearlyFreeSpeech.NET Blog » How (and why) we rewrote our production C++ frontend infrastructure in Rust
“Should we convert our _____ code to Rust?” is a question that comes up a lot. And a lot of the time the right answer is a pretty firm, “No.” So I thought it might be beneficial (and hopefully interesting) to walk through a case where the code involved was incredibly you-cannot-fuck-this-up business-critical and when we asked that question about it, we came back with a yes. Here’s what it was, how we got to that answer, and what we did about it. First off, when we say “frontend” we don’t mean what most of the world (and most of our members) think of as frontend. Our frontend consists of the servers that sit out in front of member sites to perform caching, proxying, routing, access control, and TLS.
“Should we convert our _____ code to Rust?” is a question that comes up a lot. And a lot of the time the right answer is a pretty firm, “No.” So I thought it might be beneficial (and hopefully interesting) to walk through a case where the code involved was incredibly you-cannot-fuck-this-up business-critical and when we asked that question about it, we came back with a yes. Here’s what it was, how we got to that answer, and what we did about it. First off, when we say “frontend” we don’t mean what most of the world (and most of our members) think of as frontend. Our frontend consists of the…
saved by
related reading
- Rewriting Bun in Rust | Bun Blogbun.com
- A half-hour to learn Rustfasterthanli.me
- Async Rust Is A Bad Languagebitbashing.io
- (Re)writing an interpreter in Rust – Danny van Kootendannyvankooten.com
- The Rust Journey, Part 0: Why Systems Software and Why Rust?monadical.com
- First thoughts on Rust vs OCamlblog.darklang.com
- We migrated 50,000 lines of code to React Server Componentsmux.com
- Bringing async/await to embedded Rust - Ferrous Systemsferrous-systems.com
- A data race that doesn't compilecorentin-core.github.io
- How Mozilla’s Rust dramatically improved our server-side performance | Figma Blogfigma.com
- Production Twitter on One Machine? 100Gbps NICs and NVMe are fast - Tristan Humethume.ca
- The Descent — What Happened to the Frontend While You Weren't Watchingdavidpoblador.com