Report this

What is the reason for this report?

Microservices and droplets

Posted on September 7, 2016

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.

Thanks



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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.