Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In the context of scaling MongoDB:</p> <ul> <li><p><em><a href="http://docs.mongodb.org/manual/core/replication/">replication</a></em> creates additional copies of the data and allows for automatic failover to another node. Replication may help with horizontal scaling of reads if you are OK to read data that potentially isn't the latest.</p></li> <li><p><em><a href="http://www.mongodb.org/display/DOCS/Sharding+Introduction">sharding</a></em> allows for horizontal scaling of data writes by partitioning data across multiple servers using a <em>shard key</em>. It's important to <a href="http://www.mongodb.org/display/DOCS/Choosing+a+Shard+Key">choose a good shard key</a>. For example, a poor choice of shard key could lead to "hot spots" of data only being written on a single shard. </p></li> </ul> <p>A sharded environment does add <a href="http://www.mongodb.org/display/DOCS/Sharding+Introduction#ShardingIntroduction-ShardinginaNutshell">more complexity</a> because MongoDB now has to manage distributing data and requests between shards -- additional configuration and routing processes are added to manage those aspects.</p> <p>Replication and sharding are typically combined to created a <em><a href="http://www.mongodb.org/display/DOCS/Simple+Initial+Sharding+Architecture">sharded cluster</a></em> where each shard is supported by a replica set.</p> <p>From a client application point of view you also have some control in relation to the replication/sharding interaction, in particular:</p> <ul> <li><a href="http://docs.mongodb.org/manual/applications/replication/#read-preference">Read preferences</a></li> <li><a href="http://docs.mongodb.org/manual/applications/replication/#write-concern">Write concerns</a></li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload