Stage 3
Stage 3: Building & Shipping
Goal: Build and ship services in customer environments: well-mannered APIs, config and deployment that survive three environments, observability, and security the customer's team will sign off. Time: ~2–3 weeks at 30–60 minutes a day.
By the end of this stage you can:
- Expose your work through an authenticated, validated, tested API
- Deploy the same build to dev, staging and prod with validated config and managed secrets
- Measure what matters (percentiles, not means) and survive failing dependencies
- Pass a security review: least privilege, redaction, audit logs
How to study
- Read one part at a time, in order.
- Run every example yourself (
PYTHONPATH=tools .venv/bin/python stage-3-building-and-shipping/part-09-services-and-apis/examples/01_....pyfrom the repo root). The output in the lesson came from a real run; yours should match. - Do the exercises before looking at the solutions.
- Finish the mini-project at the end of each part, then the stage project.
Parts
| Part | Area | You will build | Time |
|---|---|---|---|
| 9 | Services and APIs | The Shipments API with auth, validation, health checks and tests | ~3.5 h |
| 10 | Configuration and deployment | A deployable service: validated settings, Dockerfile, CI config checks | ~3 h |
| 11 | Reliability and observability | An observable sync: correlation IDs, percentiles, a circuit breaker | ~3.5 h |
| 12 | Security and compliance | The security pass: redaction, secret masking, access list, audit log | ~3 h |
Stage project
Acme Dispatch Service — an authenticated API over the pipeline's data with validated config, health checks, observability and the security pass, at Core, Stretch and Production levels.
The practice customer
The service fronts the data your Stage 2 pipeline loads, and its one fragile dependency is the simulated Acme API from tools/fdelab.py — which is exactly what the circuit breaker is for.