Rails + Angular. One droplet or two?

Posted August 7, 2014 4.3k views

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,



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.

Submit an Answer
2 answers

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.

by Mitchell Anicas
When deciding which server architecture to use for your environment, there are many factors to consider, such as performance, scalability, availability, reliability, cost, and ease of management. Here is a list of commonly used server setups, with a short description of each, including pros and cons. Keep in mind that all of the concepts covered here can be used in various combinations with one another, and there is no single, correct configuration.

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