Skip to content
← Notes

Web Servers

Nginx, reverse proxy, edge caching

  1. 00 Web Server Fundamentals — Roadmap Ten chapters that build a working understanding of web servers — from raw TCP sockets to a tuned, hardened nginx in front of a real backend.
  2. 01 What is a Web Server Anatomy of an HTTP request from socket to response. The four stages every web server runs through, and the names for the parts.
  3. 02 HTTP from a Raw Socket Speak HTTP by hand with netcat. Then write a 60-line Go server that does exactly the same thing — no framework, no surprises.
  4. 03 Building a Real HTTP/1.1 Parser Request bodies, Content-Length, chunked transfer encoding, and the dozen edge cases that turn a toy parser into one you would trust in production.
  5. 04 Concurrency Models Process per request, thread per request, prefork, event loop, hybrid. The five ways web servers handle thousands of concurrent connections — and why each one exists.
  6. 05 Static Files & MIME How a server turns a file path into bytes on the wire — content types, ETags, conditional requests, and the cache headers that keep every browser fast.
  7. 06 nginx Fundamentals Install, structure the config, write server blocks, understand locations and includes. The nginx mental model that holds for every advanced feature.
  8. 07 Reverse Proxy nginx in front of your application server. The headers that matter, the timeouts that save you, and the upstream pool that handles failure.
  9. 08 Access & Error Logs Customize nginx log formats, understand what each field means, find requests by status or duration, and tell access logs apart from error logs the right way.
  10. 09 Edge Caching with nginx proxy_cache, microcaching, stale-while-revalidate, and the cache key rules that turn nginx into a CDN you control.
  11. 10 Performance & Hardening Workers, sendfile, gzip and brotli, security headers, rate limiting, connection limits, body size caps. The dials that turn a working nginx into a fast, defensible one.