What is primary and secondary replica set in mongodb?
Answer / Shanky Bhatnagar
In MongoDB, a Replica Set consists of one primary and multiple secondary nodes. The primary node is the only member that writes data to the database, while secondaries are read-preferred or write-enabled replicas used for high availability and scalability. Read-preferred secondaries prioritize reads over writes during failover, whereas write-enabled secondaries can receive write operations when the primary is down.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is the difference between mongodb and elasticsearch?
What types of locking use in mongodb?
How to set primary key in mongoose?
Can you perform read/write operation for ever yield lock?
What is difference between hadoop and mongodb?
Which are the most powerful features in mongodb?
What are 32-bit nuances?
How to check if mongoose is installed?
What is mongodb sharding?
Is mongodb normalized?
What types of languages use to work with mongodb?
How do I create a collection in mongodb? Write it's syntax
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)