nginx for fun and performance
summary
Claims that nginx’s event-driven reactor model lets one server handle thousands of clients, then shows how it’s used for SSL termination (Mozilla config, DH param 2048, PFS, 50 MB session cache ≈200k sessions, HSTS 6 months, OCSP stapling), load balancing and proxying (proxy_pass, round_robin, least_conn, ip_hash, weights), static hosting with client-side far-future caching and filename hashing, and PHP via php-fpm. Benchmarks on two DigitalOcean 512MB Ubuntu droplets with ab (vanilla installs) run 25,000 requests in 7.7s (~3,323 req/s) for static files; nginx sustains high concurrency while Apache fails around 1,000 concurrent requests.
AI-written summary · about
chapters (7)
- 0:00Introduction to nginx
- 9:49Key features of nginx
- 17:12SSL termination setup
- 21:23Load balancing and proxying
- 26:41Performance benchmarks
- 35:25Benchmarking takeaways
- 36:08Q&A session
related talks
45mNginx: The power within
47mOptimizing nginx – from Beginner to Expert to Crazy
38mCranking Nginx up to 11
32mWordPress Scalability
41mHacking a Nginx module
01h 00mReverse caching proxies: Varnish or Nginx?
36mApache, nginx, Docker and the Swear Words We Love
47mFrom Legacy to High-Load: Evolution of a Web Application
