How to Squeeze 1,000,000 rps
summary
A team experimented to drive about 1,000,000 requests per second from a single physical server and a database not designed for that workload (the DB remained Sphinx). They describe discovered bottlenecks (some initially surprising), fixes applied with modest effort—including a few assembly lines (ARM assembly on an Intel server), lock-free tricks, and hand-rewritten simple syscalls—and the achieved results. Finally, they point out remaining hard-to-fix hotspots and briefly outline how to approach the next targets (10+ million rps).
AI-written summary · about
chapters (15)
- 0:00Million rps introduction
- 3:56Problem and profiling
- 7:07Benchmarking overheads
- 10:59Profiling bottlenecks
- 13:28Optimization curve
- 14:12Statistics slowdown
- 16:39Batch processing insight
- 20:08Unnecessary code removal
- 23:16Lock contention analysis
- 25:05Lock-free research
- 28:13Simple lock-free algorithm
- 31:04Code verification
- 33:17Scalable locks
- 35:45Results and benchmarks
- 37:52Key takeaways
