Tag
A comprehensive guide on how an HTTP server works, covering networking protocols, chunked encoding, state machines, parser writing, and concurrency basics, with instructions to build one yourself.
The article introduces Linux restartable sequences (rseq), a kernel feature that enables thread-safe data structures without locks or atomics, achieving dramatic performance improvements on many-core CPUs. It provides a tutorial and demonstrates up to 43x speedup on a 96-core AMD Threadripper.