Stage 5 track
Track C: Platform & Infrastructure FDE
Goal: Make it run in the customer's infrastructure — restricted networks, private CAs, capacity planned from measurements, and upgrades that never surprise anyone. Builds on: Stage 3; the dispatch service meets the hardest environments.
What you learn
- Deployment targets — customer cloud accounts, on-premises, air-gapped networks: each removes a convenience you assumed (outbound internet dies first).
- Networking in enterprises — proxies, private CAs, firewalls, private endpoints; Part 4's debugging method becomes daily work.
- Capacity planning — Little's law, load tests, headroom: plan from measurements, not vibes.
- Infrastructure as code — repeatable environments (Terraform and friends, at overview level): the staging that matches prod because the same code built both.
- Observability stacks — fitting into the customer's existing tools (their Splunk, their Grafana) rather than importing your favourites.
- Upgrades and support windows — changing production safely: agreed windows, rehearsed rollbacks, support handoffs.
- Cloud cost awareness — estimating and watching what the deployment costs the customer; an FDE who surfaces their own bill builds unusual trust.
Executed examples
Both ran in this repo; outputs are from those runs.
Capacity planning with Little's law (examples-track-c/01) — requests in flight = arrival rate × time in system; instances follow from a measured per-instance limit plus headroom:
requests in flight at peak: 10
instances needed: 1.88 -> round up to 2
Respect the customer's proxy settings (examples-track-c/02) — read the proxy from the environment, as standard HTTP clients do; with a private CA, point the client at the customer's bundle, never switch verification off:
https proxy: http://proxy.acme.internal:3128
bypass list: localhost,.acme.internal
🧪 Quick quiz — answer from memory, then check.
- Little's law: 40 requests/s with 0.25 s average latency means how many requests in flight?
Show the answer
10 — L = λ × W = 40 × 0.25. At 8 per instance with 1.5× headroom, round up to 2 instances. (verified against the example output above)
- How should code find the customer's HTTP proxy?
Show the answer
Read it from the environment (HTTPS_PROXY, NO_PROXY), as standard HTTP clients do. urllib.request.getproxies() read the proxy and bypass list from the environment. (verified against the example output above)
- Acme uses its own certificate authority and TLS verification fails. What is correct?
Show the answer
Configure the client with Acme's CA bundle. Turning verification off removes protection against interception.
- Why choose capacity from a load test instead of a guess?
Show the answer
Per-instance limits depend on the real code, data and network. Measure concurrent requests per instance, then plan with headroom.
Capstone: Acme Deployment Blueprint
- Core — deploy the dispatch service into a restricted network with a proxy and a private CA.
- Stretch — add a load test, a capacity plan and dashboards in the customer's monitoring tool.
- Production — automate the environment, rehearse an upgrade with rollback, and write the support runbook.
Read more: Little's law (Wikipedia) · Terraform docs