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.
Two ways to read this book
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
- 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.
- Run the code. Every comparison block has tabs for each language; type the example out in at least two of them.
- 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.
- Revisit after a delay. The roadmap's loop applies: recall, explain, implement without notes, break it, measure it.
Mastery levels
Languages used throughout
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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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