Backend Engineering
Build an order service, from its first HTTP request through a release you can measure and roll back.
Beginner
Follow an HTTP Request
Trace one order request from DNS and TLS through routing, application code and the response.
10 min readDesign Your First Resource API
Specify the paths, methods, status codes and error bodies for creating and retrieving an order.
9 min readGive Request Handling a Clear Structure
Separate parsing, pricing rules and persistence so one rule can be tested without a running server.
Upcoming lesson
Intermediate
Validate Inputs and Business Rules
Distinguish malformed input from an invalid order transition and return an error the caller can act on.
Upcoming lessonSessions and Order Ownership
Follow a signed-in request and test that each customer can read and change only their own orders.
Upcoming lessonTest an API at Its Boundaries
Use unit, database and HTTP tests to cover a price change, a failed write and a broken response contract.
Upcoming lesson
Advanced
Prevent Two Buyers Taking the Last Item
Compare a conditional update with a transaction and demonstrate which inventory invariant each preserves.
Upcoming lessonMove Slow Work into Background Jobs
Move receipts to a worker and decide how retries, acknowledgments and job status reach the customer.
Upcoming lessonCache Reads Without Serving Stale Orders
Choose cache keys, expiry and invalidation by following one order before and after an update.
Upcoming lesson
Expert
Find a Tail Latency Regression
Trace a slow checkout, compare median and p99 latency and test whether the bottleneck moves after a fix.
Upcoming lessonRelease a Breaking Change in Stages
Evolve an order field while old clients and old service versions are still sending traffic.
Upcoming lessonCapstone — Decide Whether Checkout Can Launch
Use a load test, a failure budget and a rollback rehearsal to make a release decision for the order service.
Upcoming lesson