← All posts
RustPerformanceBackendSystems

Why I Rewrote Our API Gateway in Rust

· 8 min read

This is placeholder content added during site development. It does not reflect real experience or published work. Real posts are coming soon.

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

MetricNode.jsRust (Axum)Δ
p50 latency4ms0.9ms-78%
p99 latency48ms12ms-75%
Memory (idle)280MB18MB-94%

Lessons Learned

Rust’s learning curve is real, but the performance guarantees and the type system caught 3 production bugs before they shipped…