Multiple MongoDB database Connections in NodeJS

twitter logo ・1 min read

MongoDB allows configuring a secondary replica node to be hidden. It means that the secondary replica node will not be elected as Primary in case of primary node failure. Wait… But why we need such a replica node? The answer is that the application can transfer its analytics(read heavy) queries to this node so the primary node will not suffer any hiccup because of heavy read analytics queries.

twitter logo DISCUSS
Classic DEV Post from Jul 30

PublishTo.Dev: Scheduling article publishing on

Abhishek singh profile image
MEAN Stack developer

Sore eyes? now has dark mode.

Go to the "misc" section of your settings and select night theme ❤️