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

Reliability and Failure

Things break: servers, networks, providers, data centres and your own deploys. Across 24 lessons you will learn to design for failure on purpose. You start with availability maths and a taxonomy of failure modes, then build the toolkit that stops one fault becoming an outage: health checks and failover, timeouts, retries with backoff, circuit breakers and bulkheads. Next you learn why systems collapse under load (queueing theory and Little's law) and how load shedding, rate limiting, autoscaling and caches keep them alive through spikes. The final part protects the data itself: integrity checks, fencing against split brain, backups you have actually restored, RPO and RTO, multi-zone and multi-region designs, safe deploys, chaos engineering and incident response. Ten challenges, four of them major capstones, let you prove each idea on the canvas against the Feedback panel's failure tests.

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

    Eliminating single points of failure

    15 min

    Find the component whose failure takes everything down, and remove it.

  2. 2

    Availability maths: nines, serial and parallel

    15 min

    Turn availability targets into minutes of downtime, and compute what a design can really deliver.

  3. 3

    A taxonomy of failure modes

    15 min

    Crashes, slowness, partitions, corruption and correlated failures: know what can go wrong before choosing defences.

4

Health checks and failover

15 min

Detect failure quickly and correctly, then move traffic without making things worse.

  • 5

    Timeouts and deadlines

    15 min

    Put a time limit on every remote call, choose it from data, and propagate it down the call chain.

  • 6

    Retries, backoff and retry storms

    15 min

    Retry transient failures without multiplying load and turning a blip into an outage.

  • 7

    Circuit breakers

    15 min

    Stop calling a dependency that is failing, fail fast, and probe for recovery.

  • 8

    Bulkheads and fault isolation

    15 min

    Partition resources so that one failing dependency, tenant or request type cannot sink the whole service.

    Practice
    1. 1/10Design a Web CrawlerUse per-host timeouts, bounded retries and bulkheads so one slow or hostile site never stalls the whole crawl.Medium
  • 9

    Graceful degradation and failing dependencies

    15 min

    Decide on purpose what happens when something you depend on is down.

    Practice
    1. 2/10Design a Weather API ProxyCache provider responses and serve stale data behind a circuit breaker when the paid upstream API is down.Easy
  • 10

    Overload and queueing theory basics

    20 min

    Little's law, utilisation and why latency explodes as a system approaches full capacity.

  • 11

    Load shedding and admission control

    15 min

    Reject some work early and cheaply so the rest is served well.

  • 12

    Rate limiting algorithms

    15 min

    Token bucket, leaky bucket and windowed counters: how to cap usage per client fairly and cheaply.

    Practice
    1. 3/10Design a Rate LimiterPick a limiting algorithm, share counters across gateways, and decide how the limiter fails when its store is down.Medium
  • 13

    Autoscaling

    15 min

    Add and remove capacity automatically, and design for the minutes it takes to react.

  • 14

    Surviving traffic spikes

    15 min

    Absorb sudden peaks, hot keys and thundering herds.

    Practice
    1. 4/10Design Food Delivery TrackingAbsorb dinner-time peaks and reconnect storms while keeping the latest courier positions flowing.Medium
  • 15

    Caching under failure: stampedes and thundering herds

    15 min

    Keep caches from amplifying failures through stampedes, cold starts and synchronised expiry.

    Challenge checkpoint
    1. 5/10Design Flash-Sale TicketingCombine a waiting room, admission control, hot-key handling and seat holds to sell out without overselling or collapsing.MAJORHardPRO
  • 16

    Data integrity: checksums, idempotency and double entry

    20 min

    Make sure retries, crashes and bugs cannot silently corrupt, duplicate or lose data.

    Practice
    1. 6/10Design an Order Fulfillment SagaMake every saga step idempotent and compensatable so retries and crashes never double-charge or lose an order.Medium
  • 17

    Consistency under failure: split brain and fencing

    20 min

    Prevent two nodes from both believing they are the leader, and stop stale leaders from writing.

  • 18

    Backups and restore drills

    15 min

    Replicas do not protect against deletion or corruption; backups do, but only if you have restored them.

    Practice
    1. 7/10Design a File Sync ServiceProtect user files with chunk checksums, conflict handling during partitions and restorable versioned backups.Medium
  • 19

    RPO, RTO and disaster recovery

    15 min

    Set explicit targets for data loss and downtime, and pick a recovery strategy that meets them at a sensible cost.

    Challenge checkpoint
    1. 8/10Design a Payment LedgerBuild a double-entry ledger with idempotent transfers, fenced writers and an RPO of zero.MAJORHardPRO
  • 20

    Multi-AZ versus multi-region

    20 min

    Survive the loss of a data centre or a whole region, and understand the latency and consistency costs of each.

  • 21

    Safe deploys: canaries, blue/green and feature flags

    15 min

    Most outages start with a change; release changes so that bad ones are caught small and rolled back fast.

    Challenge checkpoint
    1. 9/10Design Live Video StreamingKeep millions of viewers watching through ingest failures, zone loss and launch spikes using redundancy, CDNs and staged rollouts.MAJORHardPRO
  • 22

    Chaos engineering and game days

    15 min

    Inject failures on purpose to find weaknesses before real incidents do.

  • 23

    Incident response basics

    15 min

    Detect, coordinate, mitigate and learn: how teams handle outages when prevention fails.

  • 24

    Capstone: reviewing a design for failure

    20 min

    Combine the whole course into a repeatable review you can run on any design before it ships.

    Challenge checkpoint
    1. 10/10Design a Stock Exchange Matching EngineDesign a replicated, fenced sequencer and matching engine that fails over without losing or reordering a single order.MAJORHardPRO