Failure Engineering
Every system fails. What decides the outcome is how far one failure spreads, how quickly it is noticed, and what has been decided in advance. This module takes one small shop, a load balancer, three API instances, a cache and a database, and breaks it in several ways, then asks what you would have built differently.
You will work with the failure lab in every lesson: you cause a failure, read the chain of cause and effect it sets off, choose fixes that each protect something and cost something, and run the same failure again to compare. There is a sorting exercise, two quizzes and a module quiz.
The lessons
Section titled “The lessons”- Cascading failures: when one loss becomes all of them (22 min). Why losing one of three servers can end with no request answered, and what spare capacity, cheaper work and a deadline each do.
- Overload, backpressure and load shedding (22 min). What must fail when traffic is ten times the capacity, why adding capacity moves the bottleneck, and what shedding buys.
- Dependency failures: when what you call breaks (20 min). Which share of the requests needs a dead database, and what a replica, a bigger cache and graceful degradation change.
- Gray failures: slow is not dead (24 min). Why a slow dependency does more damage than a dead one, and how a timeout below the latency turns a slow network into an outage.
- Disaster recovery: RPO and RTO (22 min). The two numbers every recovery plan states, measured in a failover, and how backups and standby sites buy them.
- Failure injection and chaos experiments (20 min). How to cause a failure on purpose safely, and why an experiment is only as good as what it measures.
- Recap and quiz (12 min). The module in one page, a checklist for reviewing a design against failure, and a quiz.
What you will be able to do
Section titled “What you will be able to do”- Say whether the servers that remain after a loss can carry the traffic, and what happens to a queue that grows past the time clients will wait.
- Choose between adding capacity, shedding load and slowing the senders for an overload, and say what each one changes.
- Work out which share of requests depends on a component, and what a replica, a cache or a default does to that share.
- Recognise a gray failure and explain why a health check that asks only whether a component is up misses it.
- State a recovery time objective and a recovery point objective, and say what a backup schedule or a standby site does to each.
- Design a chaos experiment with a steady state, a hypothesis, a blast radius and a stop condition.
All the numbers in the labs are illustrative. They are for comparing choices, not for forecasting any real product, and the labs share limits that each lesson states: fixes apply from the start of the run, the engine has no circuit breaker, autoscaling or backoff, and a slow dependency does not hold the workers of the service that calls it.
Built by GhaziAlibi.
© ShardCraft. All rights reserved.