← All courses
Dashboard
Courses
Problems
Badges
Theme
Sign inStart free
Systems Engineer / Designer · course 1Medium

Asynchronous and Event-Driven Systems

Learn to take slow and unreliable work off the request path and to connect services with events instead of calls. Across 20 lessons you will use queues for background jobs, pub/sub for fan-out and replayable logs for delivery guarantees; make consumers idempotent, keep order with partition keys, and handle failure with backoff, jitter and dead-letter queues. You will then apply the patterns behind real event-driven platforms: scheduling, webhooks, real-time push, the outbox and change data capture, event sourcing, CQRS, stream processing, schema evolution and workflow orchestration. Ten design challenges, four of them major capstones, put each idea on the canvas and show how it changes latency, throughput and failure behaviour.

0/20 lessons · 0/10 challenges0%
Start lesson 1
  1. 1

    Synchronous vs asynchronous communication

    15 min

    What it costs to make the caller wait, and what you give up when you stop making it wait.

  2. 2

    Queues and background work

    15 min

    Take slow, bursty or unreliable work off the request path.

    Practice
    1. 1/10Design an Image Thumbnail ServiceMove CPU-heavy resizing to queue workers so uploads return immediately and poison images get parked.Easy
  • 3

    Pub/sub and fan-out

    15 min

    Deliver one event to many consumers, and many recipients, efficiently.

  • 4

    Streams, logs and delivery guarantees

    15 min

    Ordered, replayable event logs and what "exactly once" really means.

  • 5

    Message brokers compared

    15 min

    Queue brokers, log brokers and managed services: what each is good at and how to pick one.

  • 6

    Idempotent consumers and effectively-once processing

    15 min

    Where you acknowledge decides your guarantee; idempotency turns duplicates into no-ops.

  • 7

    Ordering and partition keys

    15 min

    Get the order you actually need, per entity, without giving up parallelism.

  • 8

    Retries with backoff and jitter

    15 min

    Retry transient failures without turning a blip into a self-inflicted outage.

  • 9

    Dead-letter queues and poison messages

    15 min

    Park the messages that will never succeed so the rest keep flowing, then fix and replay them.

    Practice
    1. 2/10Design a Notification SystemFan notifications out to slow providers with idempotent sends, backoff with jitter and a dead-letter queue.Medium
  • 10

    Backpressure and flow control

    15 min

    What to do when producers outrun consumers, because a queue only buys time.

    Practice
    1. 3/10Design a Newsletter SenderDrain 5 million sends through a rate-limited email provider without overwhelming it or sending twice.Easy
  • 11

    Scheduling and delayed jobs

    15 min

    Run work at a future time, reliably, at scale, and exactly when users expect.

    Challenge checkpoint
    1. 4/10Design Scheduled RemindersStore future jobs, dispatch them on time without a single cron box, and survive the top-of-the-hour spike.Easy
    2. 5/10Design a Distributed Message QueueBuild a partitioned, replicated broker with offsets, delivery guarantees, backpressure and delayed delivery.MAJORHardPRO
  • 12

    Webhooks

    15 min

    Deliver events to servers you do not control: retries, isolation, signing and safety.

    Practice
    1. 6/10Design Webhook DeliveryDeliver signed events to customer endpoints with long retries, a DLQ and per-customer isolation.Medium
  • 13

    Real-time push: WebSockets, SSE and long polling

    15 min

    Get events to browsers and phones in under a second, and survive the reconnects.

    Practice
    1. 7/10Design Live CommentsFan comments out to a million viewers within two seconds through pub/sub and a WebSocket gateway tier.Medium
  • 14

    The outbox pattern and change data capture

    15 min

    Update your database and publish an event without ever doing one and not the other.

    Challenge checkpoint
    1. 8/10Design a Real-Time Chat ServicePersist then push ordered messages per conversation, route to the right connection and resume after reconnects.MAJORMedium
  • 15

    Event sourcing

    15 min

    Store every change as an immutable event and derive current state from the history.

  • 16

    CQRS: separate models for writes and reads

    15 min

    Validate writes on one model and serve each kind of read from a model shaped for it.

  • 17

    Stream processing: windows and watermarks

    20 min

    Compute continuous results over unbounded data that arrives late and out of order.

    Challenge checkpoint
    1. 9/10Design Clickstream AnalyticsIngest 200 000 events per second into a stream with event-time windows, plus batch reports in a warehouse.MAJORMedium
  • 18

    Schema evolution for events

    15 min

    Change event formats without breaking consumers you do not deploy or history you must replay.

  • 19

    Workflows: orchestration vs choreography

    20 min

    Coordinate multi-step processes across services, with sagas and compensation instead of distributed transactions.

  • 20

    Capstone: designing an event-driven system end to end

    20 min

    Bring the course together: a checklist for every asynchronous edge, a worked example and the numbers to check.

    Challenge checkpoint
    1. 10/10Design a Durable Workflow EngineRun long-lived workflows with durable history, timers, retries, compensation and exactly-once step effects.MAJORHardPRO