Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Separate droplets for mongoDB and nodejs
I’m looking to run a web app hosted on digital ocean. Basically, what I’d like is the following.
Server running linux and node.js.
MongoDB, with a RESTful interface so both a website and native apps can easily access the data.
Storage of static files, including the website files, and a boatload of images (since from what I understand, MongoDB is not as efficient at transmitting binary data, so it’s better to just have the records store links to the images in a cloud storage site).
Is it better to have the server with the static files on one droplet, and the database on another, or just lump them all together? Or if there is an even better alternative I’m all ears!
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.×