Rails + Angular. One droplet or two?

Hi all,

I have a rails API and an AnguarJS front end that I am wanting to move in to production. Since the pricing structure with DO is pretty linear would it be better to have 2 separate droplets, or would it be better to host them both on the same droplet?

Or would it be better to break it up in to a staging droplet and a production droplet.

Any pointers would be great,



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.

That link is great, Andrew thanks for that. Its pointing me in the right direction.

How much traffic and how much potential for growth does the site have? When planning the infrastructure, think about how you’ll scale up. If it’s on one droplet, you can just increase the size of it in one shot. But having the frontend and backend split opens up other options like having multiple frontend instances that are load balanced. Check out this article for the pros and cons for a few different configurations:

5 Common Server Setups For Your Web Application

I don’t think that this isn’t going to be the kind of question that will have a single “correct” answer. So I’m interested to hear what other people will add.