Web Acceleration Mechanics
summary
Compares architectures and internals of specific web accelerators (Nginx, Varnish, Apache Traffic Server, HAProxy, H2O, Tempesta FW) to explain how they manage client/backend connections, HTTP message queuing and failover, and the security consequences. Covers how HTTP/1.x, HTTP/2 and HTTP/3 (QUIC) parsers and HPACK/QPACK compression interact and can harm performance, what HTTP allows to be cached and different caching implementations (mmap(), file cache, database), plus network I/O and TLS optimizations in accelerators and modern Linux kernels.
AI-written summary · about
chapters (35)
- 0:00Who am I?
- 0:53Tempesta FW: Application Delivery Controller (ADC)
- 1:07Web accelerator
- 2:20Agenda & Disclaimer
- 2:48Server connections
- 3:41HTTP/1 message pipelining
- 4:21HTTP Response Splitting attack (Web cache poisoning)
- 9:26Resend HTTP requests?
- 10:26Requests reforwarding (not for persistent sessions!)
- 13:47HTTP/2 prioritization
- 15:15HTTP messages adjustment
- 16:19Multi-pass HTTP parser
- 16:54Switch-driven HTTP parser
- 17:50HTTP parsers in the wild
- 18:32Why HTTP strings matter?
- 19:45Let's check
- 20:17HPACK (HTTP/2) & QPACK (QUIC)
- 23:12HTTP/2 as the first class citizen
- 24:47Not to cache
- 25:09Cache Set-Cookie?
- 26:56Cache entries freshness
- 27:53HTTP/2 server PUSH
- 30:16Vary
- 33:23Cache storage: mmap(2)
- 34:05Requests coalescing
- 35:1210 & multitasking
- 35:32Threads vs Processes vs Softirq
- 37:03Network asynchronous I/O
- 37:45vmsplice(2) zero-copy transmission
- 38:30User space HTTP proxying
- 39:07Tempesta FW: zero-copy proxying
- 39:32TLS termination
- 40:11SSL/TLS: (zero-)copying
- 40:53TLS record size & TCP
- 41:41TCP & TLS dynamic record size
related talks
40mWhirlwind tour through the HTTP2 spec
38mHTTP Headers that Make Your Website Go Faster
01h 00mHTTP/2 - The future of the web today
50mHTTP request proxying by a web accelerator
50mHigh-performance web apps using HTTP/2
34mHow HTTP already solved all your performance problems 10 years ago
42mHow a Web Accelerator Accelerates Your Site
01h 03mWhirlwind tour through the HTTP2 spec
