- Intermediate
- Data and storage
Where it shows up in real systems
-
Document database
A replica set elects a new primary when the current one fails. With write concern majority, an acknowledged write survives that failover; with w:1, recent writes can be rolled back. Reading from secondaries scales reads but returns slightly stale data.
In production: MongoDB Atlas, Amazon DocumentDB, Couchbase, Firestore
See it break, then fix it
Build an architecture, send it a day of traffic and outages, and learn why it holds or fails. Free to start.