balajirai
balajirai

Reputation: 45

MongoDB : mongo, mongos, mongosh, mongod

What are the key differences among :

  1. mongo
  2. mongos
  3. mongosh
  4. mongod

I've tried many websites but didn't get clear explanations for these.

Upvotes: 2

Views: 2192

Answers (1)

dododo
dododo

Reputation: 4857

Server side binaries:

  • mongos is a router for sharding. It will be used if your server is configured as sharded.
  • mongod is a particular server. Can be used alone (not recommended for production) or as part of replica set.

Client side binaries:

  • mongo is a legacy shell to query server (not supported anymore in 2024)
  • mongosh is a modern shell to query server

Upvotes: 4

Related Questions