Nodes
- Named nodes. A node is a named BEAM instance: Node.connect/1 joining machines into one system.
- Cookies. Nodes trust by shared cookie: cluster security’s first, bluntest layer.
- Transparent pids. Pids work across nodes: send is location-transparent, code unchanged.
Clustering
- Cluster formation. Clusters form by configured discovery: static lists or libraries finding peers dynamically.
- Global processes. Cluster-wide names register via :global or registries: one coordinator findable anywhere.
- Work placement. Work spawns where capacity lives: distribution as an application decision, measured.
Distributed Failure
- Netsplits. Networks partition: both halves keep running, and reconciliation is your design problem.
- Node monitors. Nodes monitor each other: :nodedown events turning topology into handled messages.
- Partition answers. Every distributed feature states its split-brain answer up front: pause, degrade or merge later.
Before and after this level
- Before: Level 10: Metaprogramming: Macros, Quote and Unquote, Compile-Time Extension.
- Next: Level 12: Data & State: ETS, Persistent Data Concepts, Concurrent State Architecture.
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 Elixir Level 11: Distributed Elixir cover?
Nodes, Clustering, Distributed Failure: 3 lessons and 9 ideas.
What should I know before this level?
The level before it, Level 10: Metaprogramming, which covers Macros, Quote and Unquote, Compile-Time Extension.