Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
System Design Patterns For Absolute Beginners
New
4 students

System Design Patterns For Absolute Beginners

Learn API gateways, outbox, idempotency, circuit breakers, sagas and CQRS by scaling one online store step by step
Last updated 11/2026
English
English

What you'll learn

  • Structure an application with Hexagonal Architecture so business rules stay independent of databases and frameworks
  • Decide when a modular monolith is enough and when splitting into microservices is worth the network cost
  • Design an API gateway layer with routing, offloading, aggregation, Backend for Frontend and token bucket rate limiting
  • Choose between synchronous calls and event-driven Pub/Sub for each interaction between services
  • Deliver messages reliably with the transactional outbox, queues, competing consumers, idempotency keys and dead letter queues
  • Contain failures with timeouts, retries with backoff and jitter, circuit breakers, bulkheads and graceful degradation
  • Keep data consistent across services with cache-aside, sagas with compensating transactions, and CQRS read models
  • Apply a repeatable framework to answer system design interview questions with clear trade-offs

Course content

1 section • 16 lectures • 31m total length
  • 01-welcome1:52

    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.

  • 02-hexagonal-architecture2:10

    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.

  • 03-modular-monolith-vs-microservices1:52

    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.

  • 04-api-gateway-aggregation-bff1:55

    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.

  • 05-rate-limiting-token-bucket1:02

    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.

  • 06-sync-calls-vs-pub-sub1:07

    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.

  • 07-outbox-queues-competing-consumers2:02

    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.

  • 08-idempotency-dead-letter-queues1:34

    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.

  • 09-timeouts-retries-circuit-breakers2:24

    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.

  • 10-bulkheads-degradation-observability1:22

    Bulkheads, Graceful Degradation and Observability


    Isolate slow dependencies with bulkheads, decide what users see with graceful degradation, and trace every request with correlation IDs.

  • 11-caching-cache-aside-stampedes1:05

    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.

  • 12-sagas-and-cqrs1:58

    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.

  • 13-one-order-end-to-end1:43

    Finale: One Order End-to-End


    Watch one order travel through every pattern in the course, from cached product page to real-time tracking.

  • 14-recap-every-pattern-on-one-page3:02

    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.

  • 15-design-exercise-food-delivery-app3:29

    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.

  • 16-system-design-interview-playbook2:28

    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.

Requirements

  • Basic programming experience in any language
  • A general idea of how web apps work: HTTP requests, APIs and databases
  • No prior system design or distributed systems experience is needed

Description

“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?

Who this course is for:

  • Software developers who want to move from building features to designing systems
  • Engineers preparing for system design interviews
  • Back-end and full-stack developers working with, or moving to, microservices
  • Tech leads and architects who want a shared vocabulary for architecture reviews
  • Computer science students who want to understand how real-world back ends stay reliable