In terms of CAP theorem, MongoDB is usually defined as CP by default. In a replica set scenario, is the following correct? The option w
is the write concern:
{ w: 1 }
: wait for a confirm only from the primary. If we read from secondary members, the system is eventually consistent and then AP.{ w: 3 }
: wait for a confirm from three members. If the replica is made of three members, the system is consistent (strong?) and thus CP.