MongoDB & NoSQL (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
What is an Arbiter in MongoDB and why is it discouraged in modern production?
senior LevelMost AskedDatabases & SQL
In Simple Words: An Arbiter is a lightweight replica set member that does not hold data and cannot become Primary:
- Its sole purpose is to provide a tie-breaking vote during elections to reach a quorum without paying for a full data replica.
- Why Discouraged: Arbiters break
w: "majority"guarantees, cannot participate in multi-document transactions, and provide zero read scalability. Always deploy an odd number of full data replicas (e.g. 3 nodes).