InfrastructureVol. 6 · Part VI
0 / 0

Shelves / Infrastructure

Software Engineering · Volume 6

Infrastructure

Part VI of the Software Engineering roadmap, written out as a textbook that starts from zero. The opening chapter assumes you have only ever run programs on your own machine; every later chapter opens with a plain-language Start here section whose commands were actually run (on Ubuntu 24.04 with Docker 29, NGINX, HAProxy and a k3s 1.37 Kubernetes cluster), then goes all the way down: Linux processes, permissions, the page cache and diagnostics; containers built by hand from namespaces and cgroups; Docker images, caching, secrets and signals; reverse proxies, TLS and load balancing; Kubernetes from the control plane to probes and Service networking; and deployment strategies measured under live traffic. Each chapter ends with a lab of real measurements and a revision sheet, and a final chapter of eight projects builds a production-shaped platform.

8 chapters◷ ~3 h to read ✓ 238 topics? 8 quizzes

Two ways to read this book

New to the subjectStart with the opening Start Here chapter and read chapters in order. In each chapter, read the Start here section, run its examples, answer Check yourself before opening the answers, and take the quiz. Read the deeper sections once the Start here quiz is easy; leave the hardest parts for a second pass. Build the projects in the final chapter as you go.
Experienced engineerSkip the opening chapter. In each chapter, read the Revision sheet at the end first and take its quiz; skim Start here; then use How deep to go to pick the internals sections and lab experiments that fill your gaps. Tick a topic only when you could teach it.

Every chapter has the same shape: Start here (first principles, plain language, small verified examples) → How deep to go (what each mastery level needs) → full-depth sections → Lab (experiments with real measured output) → Revision sheet (key ideas, numbers to remember, pitfalls, glossary, quiz).

How to use this book

  1. Read one topic at a time. Each topic heading has a Done tick. Tick it only when you can explain the idea aloud without looking, which is roughly mastery level L2–L3 below.
  2. Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
  3. Take the chapter quiz at the end. A score of 80% or more counts as passed. Wrong answers show the explanation, so re-read that topic and untick it if needed.
  4. Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.

Mastery levels

L1 RecognitionDefine it and identify it.
L2 WorkingUse it correctly in code or config.
L3 InternalsExplain why it works.
L4 DebuggingDiagnose failures and performance problems.
L5 DesignChoose among competing approaches.
L6 ProductionOperate it under scale, failure, security and cost.

Languages used throughout

Linux · systemd · cgroup v2OCI · containerd · runcDocker · BuildKit · ComposeNGINX · HAProxy · Envoy · CaddyKubernetes 1.37 · Gateway APIHelm · Kustomize · Argo CD · FluxArgo Rollouts · Flagger

Kubernetes material targets v1.37 (August 2026). Ingress NGINX was retired in March 2026, so new routing examples use the Gateway API. Where a feature is beta or still changing, the text says so. Commands assume a recent Linux distribution with cgroup v2.

Contents

  1. IN·00Start Here: Where Your Code Actually RunsFor readers who have written programs but never deployed one: the layers between your code and the hardware, the same small web service run four ways…5 min
  2. IN·79LinuxLinux for engineers who run software on it: the kernel/user-space boundary and system calls, the filesystem hierarchy, VFS, inodes and links…37 min
  3. IN·80ContainersWhat a container really is: ordinary Linux processes isolated with namespaces, limited with cgroup v2, and confined with capabilities, seccomp and…23 min
  4. IN·81DockerBuilding and running images well: every Dockerfile instruction and what it does to layers, the build context and .dockerignore, how the layer cache…23 min
  5. IN·82Reverse Proxies and GatewaysThe servers in front of your servers: forward versus reverse proxies, L4 versus L7, NGINX's event-driven architecture and configuration, HAProxy's…23 min
  6. IN·83KubernetesKubernetes from first principles to advanced operation: declarative desired state and reconciliation, the control plane (API server, etcd, scheduler…40 min
  7. IN·84Kubernetes Deployment StrategyShipping changes without outages: rolling updates in detail (maxSurge, maxUnavailable, readiness gating, progress deadlines), recreate, blue/green…22 min
  8. IN·85Infrastructure ProjectsEight build-it-yourself projects that take the tiffin centre's services from a laptop to a production-shaped platform: a hardened Linux host…7 min