180,000 requests per second, explained simply
summary
Shows how to push API call throughput to 180,000 requests per second from a single laptop by explaining low-level tools and techniques such as curl, HTTP internals, pcntl and PHP. Also covers horizontal scaling strategies, performance optimizations and architectural decisions to go beyond that throughput, presented in a step‑by‑step, accessible way for developers of all levels.
AI-written summary · about
chapters (19)
- 0:00Introduction
- 3:01Custom Curl code
- 8:02Parallel requests with Curl
- 10:30Avoiding busy looping
- 16:50Optimizing Curl multi
- 17:13TCP connection limits
- 21:07Gradual connection scaling
- 22:10HTTPS vs HTTP
- 25:39HTTP/1.1 vs HTTP/2
- 26:02HTTP/3 and QUIC
- 30:55HTTP/2 vs HTTP/3 performance
- 34:30DNS resolution issues
- 35:56Bypassing DNS caching
- 37:18Maximizing CPU usage
- 38:02PCNTL for parallelism
- 40:52Shared memory in forks
- 43:01Resource conflicts in forks
- 44:45Final performance results
- 45:47Summary and Q&A
