Question

Database Region Performance or Best Practice

Hello, I have a Node.js app with Nginx reverse proxy setup. I’m using SF1 for my current Region because most of my traffic is from West Coast (USA). I’m trying to plan for scaling out and performance enhancements and the topic of the MongoDB server (droplet) came up.

If I expand droplets to NY1/2/3 for regional traffic redirection should I also setup a synced MongoDB server in the same region? If so, are there best practices for managing the sync between both database servers?

Any tips on multi-region / datacenter droplets on this topic help! Thanks,


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This comment has been deleted

Hey there!

There is definitely value to having your data in more than one region. When running a separate database server, having that replicated locally near your application server is absolutely going to be a positive thing for performance. Someone around here may know a little more MongoDB than me (MySQL for life), but check out this guide for setting up MongoDB replication:

https://www.digitalocean.com/community/tutorials/how-to-implement-replication-sets-in-mongodb-on-an-ubuntu-vps

Kind Regards, Jarland Platform Support Specialist