If there is only one card box, coffee spilled on it stops the whole shop. So the head barista has two helpers, and each keeps a copy of the box. Only the head barista writes cards, and he also enters every change in a log. The helpers read the log and repeat the same changes in their copies. If the head barista falls ill, the helpers choose a new head from among themselves and carry on.
In this lesson
- Replica set
- Elections
- Write concern
- Where to read from
- Common mistake
- Key points