Skip to main content

Part I β€” Foundations: the machine, the wire, the request lifecycle

Goal. Install the load-bearing mental models so nothing downstream is magic. You will treat a server as a process in an accept loop, understand the OS/kernel boundary, derive blocking vs non-blocking I/O, and trace a request across the network from DNS to bytes on a socket.

Milestone. You can trace any request end-to-end naming each hop and its failure mode, build an HTTP server from raw sockets, and explain why the event loop exists β€” as a consequence of OS and I/O fundamentals, not memorized behavior.

Pulsely increment. v0 β€” a hand-rolled TCP server that parses HTTP/1.1 by hand and serves JSON (POST a vital, GET a patient), behind a TLS-terminating reverse proxy.

Chapters

  1. What a Backend Is & the Request's Journey
  2. The Server as a Process: Sockets, Ports & the Accept Loop
  3. OS & Runtime Fundamentals: Processes, Threads, Memory, Syscalls
  4. I/O & Concurrency Models: Blocking, Non-Blocking & the Event-Loop Idea
  5. Networking I: IP, TCP/UDP, Sockets, DNS
  6. Networking II: TLS, HTTP/1.1–3, Proxies, Load Balancers, CDNs