DEV Community

Abhishek singh
Abhishek singh

Posted on

Multiple MongoDB database Connections in NodeJS

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.
Read More...

https://medium.com/@abhi11210646/multiple-mongodb-database-connections-in-nodejs-ee4b75cc70e3

Top comments (0)