SSR on Rust: From Experiments to 95,000 RPS
dev.to·1d·
Discuss: DEV
🚀Performance
Preview
Report Post

Introduction It all started one evening... I was tinkering with rewriting the front-end of a marketplace from React to Preact, using Brotli compression and native CSS, just to test out some extreme optimizations. In my quest for maximum performance and speed, I decided to experiment with porting the back-end to Rust, including compressing the database into Redis—but that’s a story for another time. Anyway, these experiments led me to the idea of building an SSR engine on Rust, and benchmarks showed me hitting 95,000+ RPS on an M4 chip. That’s pretty decent in itself; I’ll dive into the details below. Architecture of Rusty-SSR Rust gives you more flexibility in managing threads and memory. At the core of Rusty-SSR is a pool of V8 isolates, thread pinning to cores, and a multi-tier …

Similar Posts

Loading similar posts...