Clarification on MongoDB Replication: Impact on Application Connection


I’ve recently set up replication on my self-hosted MongoDB on AWS. Will this change the connection my application uses before? If so, do I need to restart my app? Thanks!

Hi :wave: @Zohaib_Tariq,

Welcome to the MongoDB Community forums :sparkles:

Yes, after you convert the mongod to a replica set, you should update the connection string used by your applications to the connection string for your replica set and then, restart your applications. For more info, please refer to MonogDB Replica set documentation.

Feel free to reach out, in case you need any further help!

Best regards,