Apache ZooKeeper
medium 30 minZooKeeper is a small, replicated, strictly ordered tree of notes that programs use to coordinate: who is the leader, who is alive, who holds a lock, what the settings are.
What each level should show
The same question is judged differently for mid, senior and staff.
Mid
Must show
- Znodes, sessions, ephemeral nodes
- Majority and odd sizes
- Watch fires once
Will be probed on
- Why dead instances linger
- Read consistency
Stands out
Draws the election with predecessor watches.
Senior
Must show
- Write path and epoch
- Disconnected against expired
- Fencing
Will be probed on
- Timeout choice
- Observers
- Disk latency
Stands out
Says a lock alone does not protect data.
Staff
Must show
- When not to add it
- Blast radius of a shared ensemble
- Migration away
Will be probed on
- Multi-region
- Operating cost
Stands out
Finds a design that needs less coordination.