CapstoneVol. 19 · Part XIX
0 / 0

Trails / Capstone

Software Engineering · Volume 19 · guide

Capstone

The roadmap's capstone as one real system: TiffinBox, a lunch-subscription service with a React frontend, a Spring Boot modular monolith, PostgreSQL, Redis, object storage, search, Kafka events, an AI assistant, Kubernetes, infrastructure as code, observability and security, built layer by layer from a walking skeleton. Each chapter starts from first principles and ends with measured labs (where a request's time goes, live updates, a hung dependency, search indexes, event replay, structured-output retries, CDN and TLS costs, canary statistics, audit hash chains), then the twenty failure exercises break it on purpose: outages, leaks, full disks, duplicate payments, half-done deploys, expired certificates, AI provider failures, prompt injection and zip bombs, each detected, mitigated, recovered and prevented.

12 chapters◷ ~2 h to read ✓ 250 topics? 12 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

Java 21 · SpringC · C++ · Rust · Zig · GoPostgreSQL 16TypeScript · React · browserPython · PyTorchKubernetes · cloud · CI/CDLLMs · RAG · agents

Status as of November 2026: the roadmap's baselines are Java 27 and Spring Boot 4.x; the experiments in this volume ran on one 2-CPU lab machine with JDK 21, Python 3, PostgreSQL 16, Redis 7, nginx, k6, wrk and OpenSSL, and their real output is shown. Where a lab substitutes or simulates (Redis Streams for Kafka, a plain JDK HTTP server for Spring, fake model providers, simulated canary and evaluation statistics), it says so.

Contents

  1. SC·00Start Here: Building the CapstoneFor anyone ready to put the whole roadmap into one system: what the capstone is and why it's one application rather than many, TiffinBox's layers and…4 min
  2. SC·211AThe System, Its Boundaries and the Build OrderThe capstone as one serious application, TiffinBox: the user journeys, the non-functional requirements turned into numbers, the boundaries (a modular…15 min
  3. SC·211BThe Frontend LayerTiffinBox's web app built to the capstone's list: React and TypeScript with a typed API client, an accessible component system, responsive layouts…13 min
  4. SC·211CThe Backend LayerTiffinBox's API built to the capstone's list: current Java and Spring Boot, a layered modular structure, REST resources with problem details…13 min
  5. SC·211DThe Data LayerTiffinBox's data built to the capstone's list: PostgreSQL as the source of truth (schemas per module, migrations, indexes from real queries, pooling…12 min
  6. SC·211EThe Event LayerTiffinBox's asynchronous backbone built to the capstone's list: Kafka topics, partitions and keys chosen for ordering, events designed as versioned…11 min
  7. SC·211FThe AI LayerTiffinBox's assistant built to the capstone's list: a model gateway over LLM APIs, an ingestion pipeline for kitchen documents, hybrid retrieval with…11 min
  8. SC·211GThe Platform LayerTiffinBox's infrastructure and delivery built to the capstone's list: minimal non-root container images, Kubernetes workloads spread across zones…12 min
  9. SC·211HThe Operations Layer: Observability and SecurityTiffinBox made observable and secure to the capstone's lists: OpenTelemetry end to end, logs, metrics and traces that join up, dashboards per…11 min
  10. SC·212AFailure Exercises I: Dependencies, Resources and CapacityThe first ten of the capstone's twenty failure exercises, run against TiffinBox: database outage, cache outage, Kafka outage, slow dependency, CPU…14 min
  11. SC·212BFailure Exercises II: Duplicates, Deployments, Credentials and AIThe second ten of the capstone's failure exercises: duplicate message, duplicate request, partial deployment, failed migration, expired credential…18 min
  12. SC·213Capstone Milestones and EvidenceThe capstone as a plan you can follow: eight milestones from walking skeleton to failure exercises, each with deliverables, the evidence that proves…4 min