Hi there ,
I know that those concepts are explained in the video , but I think a topic talking a little bit about them would be helpfull. Please help me clarify the difference between them.
Basically, when you get to the end of m103 you should be able to know the difference between mongo , mongod and mongos processes and commands and what which one of those do.
From what I understand , mongod is almost like an API.
It’s the middleman between the application and the db. It handles data requests, manages data access, and performs background management operations.
Mongos is also a middleman.
The mongos instances route queries and write operations to the shards in a sharded cluster.
Would it be fair to say it does the same as mongod ? What’s the big difference ?
When I run the command " mongo --port xxxx"
I’am connecting to the cluster / replica itself and not starting a middleman like the previous processes.
Useful links :