Timeouts and Backpressure
- Timeouts everywhere. Every call carries a timeout: unbounded waiting is an outage on a timer.
- Backpressure. Backpressure bounds intake: refusing politely beats drowning heroically.
- Mailbox discipline. A growing mailbox is the classic BEAM failure: bounded producers and load-shedding keep it flat.
Partial Failure
- Degrade honestly. Systems degrade by feature: the catalogue serves while checkout heals.
- Circuit breakers. A circuit breaker stops calling a failing dependency: recovery probed, not hammered.
- Redundancy. Critical services run redundant processes and nodes: failure planned as routine, not exception.
Designing Self-Healing Systems
- Restart as recovery. The supervision tree makes restart the recovery mechanism: designed, tested, trusted.
- Error kernels again. Self-healing designs shrink the kernel: the less that must survive, the more can safely crash.
- Chaos-testing trees. Kill processes on purpose and watch the tree heal: chaos drills prove the design honest.
Before and after this level
- Before: Level 10: Distributed Erlang: Nodes, Distributed Messaging, Clustering and Network Failure.
- Next: Level 12: Networking: TCP and UDP, Protocol Processes, High-Concurrency Network Systems.
In the app each of these ideas is taught and then asked back, and the level ends with a checkpoint and flashcards. See Checkpoints and flashcards.
Frequently asked questions
What does Erlang Level 11: Reliability Patterns cover?
Timeouts and Backpressure, Partial Failure, Designing Self-Healing Systems: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 10: Distributed Erlang, which covers Nodes, Distributed Messaging, Clustering and Network Failure.