The Problem
Our Node.js gateway was handling 50k req/s and starting to buckle under CPU pressure at the 99th percentile…
The Benchmark Results
| Metric | Node.js | Rust (Axum) | Δ |
|---|---|---|---|
| p50 latency | 4ms | 0.9ms | -78% |
| p99 latency | 48ms | 12ms | -75% |
| Memory (idle) | 280MB | 18MB | -94% |
Lessons Learned
Rust’s learning curve is real, but the performance guarantees and the type system caught 3 production bugs before they shipped…