Advanced OTP Architecture
- Custom behaviours. Teams write their own behaviours: generic halves for their domain’s repeated patterns.
- gen_statem. gen_statem models state machines as first-class OTP: protocols and sessions as declared states.
- Dynamic supervision. simple_one_for_one supervision spawns children dynamically: a process per session, supervised.
Distributed Failure Engineering
- Consistency choices. Distributed state chooses: consensus, CRDTs or single writers: each a named trade-off.
- Split-brain drills. Mature teams drill netsplits: partition the cluster on purpose and verify the promised behaviour.
- Global bottlenecks. Cluster-wide locks and global names serialise: mastery designs them out of hot paths.
Reading and Improving Complex Erlang
- Reading strategy. Read an Erlang system by its supervision tree: the failure domains are the architecture.
- Improving live systems. Improve with tracing evidence: observe the live node, change one thing, observe again.
- Explaining decisions. Mastery is explaining the design: this tree, this kernel, this partition answer: trade-offs named.
Before and after this level
- Before: Level 16: Releases & Operations: Releases, Runtime Upgrades, Operating Long-Lived Systems.
- Next: this is the last level. The course ends with its projects; see the course outline.
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 17: Erlang Mastery cover?
Advanced OTP Architecture, Distributed Failure Engineering, Reading and Improving Complex Erlang: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 16: Releases & Operations, which covers Releases, Runtime Upgrades, Operating Long-Lived Systems.