
Welcome: What Really Happens When You Press “Place Order”
Follow one tap on “Place Order” through stock checks, card holds, receipts, emails and the warehouse, and see why system design is about surviving failure. Meet ScaleCart, the sneaker shop we’ll scale.
Hexagonal Architecture (Ports and Adapters)
Untangle business rules from SQL and HTTP code. Learn input and output ports, plug-in adapters, and why every dependency should point inward.
The Modular Monolith and When Microservices Are Worth It
See why a modular monolith is a powerhouse, what pushes a team to microservices, and the “network tax” you pay when you split.
API Gateway, Gateway Aggregation and Backend for Frontend
Give clients one front door: routing, gateway offloading, gateway aggregation for slow networks, and Backend for Frontend for web and mobile.
Rate Limiting with the Token Bucket
Stop a scraper bot without blocking real shoppers. Compare fixed-window counters with the token bucket, and share counts across gateway nodes.
Synchronous Calls vs Event-Driven Pub/Sub
Learn when a call must be synchronous and when to publish an event, plus the three trade-offs of Pub/Sub.
Transactional Outbox, Load Leveling and Competing Consumers
Fix the dual-write problem with a transactional outbox, absorb Black Friday with a queue, and scale out with competing consumers and partitions.
Idempotency Keys, Poison Messages and Dead Letter Queues
Make duplicates harmless with idempotency keys and processed-event tables, and stop poison messages with a dead letter queue.
Timeouts, Retries with Backoff and Jitter, and Circuit Breakers
Prevent cascading failures with timeouts, retry safely with exponential backoff and jitter, and fail fast with circuit breakers.
Bulkheads, Graceful Degradation and Observability
Isolate slow dependencies with bulkheads, decide what users see with graceful degradation, and trace every request with correlation IDs.
Caching: Cache-Aside, Invalidation and Stampede Protection
Speed up reads with cache-aside, invalidate correctly, and protect the database from cache stampedes with request coalescing and TTL jitter.
Distributed Transactions: Sagas and CQRS
Coordinate a four-database checkout with a saga and compensating transactions, then build a fast “My Orders” screen with CQRS.
Finale: One Order End-to-End
Watch one order travel through every pattern in the course, from cached product page to real-time tracking.
Recap: Every Pattern on One Page
Review every pattern in the course, grouped by the question it answers, with the cheat sheet beside you. Each pattern fixes one specific failure and has a cost.
Design Exercise: Apply the Patterns to a Food-Delivery App
Design DashEats, a food-delivery app, from scratch. Start with a modular monolith and add only the patterns its real failures call for, from courier tracking to sagas.
System Design Interview Playbook
Use a five-step framework to answer system design interview questions: clarify, sketch the simple design, find what breaks, add patterns with their costs, and close on reliability.
“This course contains the use of artificial intelligence.”
What really happens after you tap "Place Order"? Behind that one button, a relay race starts across dozens of machines: checking stock, holding a card payment, saving a receipt, sending an email and alerting a warehouse. Any one of them can slow down, overload or crash at the worst moment.
This course teaches the architecture patterns engineers use to keep that promise. Instead of memorizing patterns like flashcards, you follow one company, ScaleCart, an online sneaker shop, from a single server in a garage to a resilient distributed system. Every pattern earns its place: we try the simple approach first, watch it break, then add the fix and weigh its cost.
What you'll build understanding of:
- How the application is built: Hexagonal Architecture (Ports and Adapters), the Modular Monolith, and when Microservices are worth the "network tax".
- How services are reached and talk: API Gateway and Gateway Offloading, Gateway Aggregation, Backend for Frontend, rate limiting with the Token Bucket, and synchronous calls vs. event-driven Pub/Sub.
- Making messages arrive safely: the Dual-Write Problem, Transactional Outbox, Queue-Based Load Leveling, Competing Consumers, Idempotency Keys, Poison Messages and Dead Letter Queues.
- When a service stops answering: Timeouts, Retries with Exponential Backoff and Jitter, Circuit Breakers, Bulkheads, Graceful Degradation, and Observability with Correlation IDs.
- Data across many services: Cache-Aside, invalidation and stampede protection, Sagas (choreography vs. orchestration) and CQRS.
The finale traces a single order through every pattern, so you see how they fit together in one real system.
Every lecture is a fully animated explainer with captions, and the course includes a printable patterns cheat sheet and complete course notes to review from.
This course is for developers moving from writing features to designing systems, engineers preparing for system design interviews, and anyone who wants a clear mental model of how modern back ends stay reliable. You'll finish able to ask the one question that drives every good architecture review: what breaks next, and is the fix worth its cost?