adspace


In mongodb, how sharding and replication work together?

Answer Posted / Gurucharan Singh

Sharding is a method used to horizontally partition data across multiple MongoDB instances for improved scalability. Replication, on the other hand, is used to maintain copies of data across multiple servers for better fault tolerance and availability. In MongoDB, sharded clusters combine both sharding and replication features, allowing you to store multiple copies of each document across several shards while still maintaining the performance benefits of horizontal scaling.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command syntax for inserting a document?

63


How did mongodb get its name?

60


How to define array in mongoose schema?

79