Docs Menu

Docs HomeMongoDB Manual

Replica Set Read and Write Semantics

From the perspective of a client application, whether a MongoDB instance is running as a single server (i.e. "standalone") or a replica set is transparent. However, MongoDB provides additional read and write configurations for replica sets.

Note

Sharded clusters where the shards are also replica sets provide the same operational semantics with regards to write and read operations.

Write Concern for Replica Sets
Write concern describes the level of acknowledgement requested from MongoDB for write operations.
Read Preference
Read preference specifies where (i.e. which members of the replica set) the drivers should direct the read operations.
Server Selection Algorithm
Describes the mechanics of read preference.
←  Rollbacks During Replica Set FailoverWrite Concern for Replica Sets →
Give Feedback
© 2022 MongoDB, Inc.

About

  • Careers
  • Investor Relations
  • Legal Notices
  • Privacy Notices
  • Security Information
  • Trust Center
© 2022 MongoDB, Inc.