Hacking a Nginx module
summary
Describes building and testing custom Nginx modules in C compiled into the binary for ad-serving at scale, claiming a production cluster handles 1.75 million req/s across 12 Nginx instances. Uses a Scala-based test harness to spawn Nginx and mock upstreams, runs 20-hour stress tests to catch leaks, debugs with gdb and core dumps, and records percentiles with HDR Histogram. Shows a load‑balancer module, health checks and default-response fallback that work in production.
AI-written summary · about
chapters (11)
- 0:00Introduction to Nginx modules
- 3:28Why extend Nginx with modules
- 7:57Nginx architecture overview
- 12:01Building a custom Nginx module
- 18:04Demo of module in action
- 21:42Real-world use case and performance
- 24:40Testing Nginx modules effectively
- 27:25Debugging modules in production
- 29:16Advanced module features implemented
- 32:19Resources for module development
- 33:32Q&A session








