Sharding: mongos
101/104
Sharding: How does it work?
Sharding: config server
•
Acts just like a
mongod
towards clients
•
You can have as many as you want
•
Lightweight, so can run on the web servers
•
Caches meta-data from config servers
•
Routes queries to the correct shards:
•
Insertions directly to one shard
•
Queries to one, a few, or all shards