Microservices and droplets

Actually I work on a project and we use docker-compose in development.

It compose of 2 database (postgresql and redis), 3 microservices and Nginx.

I don’t know if the best is to use one droplet for all or create 2 droplets for databases, and one droplet for each services.

At the beging I would like reduce the hosting cost much as possible.


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.

Either option is an acceptable solution starting out.

Without knowing more about your project or the services you’ll be running or the traffic or load you’ll expect it is difficult to give you a good recommendation. If your primary concern is cost then you could either use a single droplet to start out or a few small droplets, I would not recommend running your db servers on anything smaller than a 1GB droplet however. Your microservices could likely be run on 512MB droplets. This is of course assuming a relatively small amount of traffic.

Using multiple droplets would make scaling a bit easier as you could then resize individual droplets as needed to increase capacity.