hello, so I’ve been considering hosting my applications on digitalocean. It’s a React frontend application and a NodeJS express backend API application with MySQL database, should I choose in this case 2 droplets (1 for frontend and 1 for backend with the managed database) or can this be done on 1 droplet with managed database.
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.
Choosing the right Droplet plan depends on your workload. An oversized Droplet would underuse its resources and cost more, but an undersized Droplet running at full CPU or memory would suffer from degraded performance or errors.
To help you pick the best Droplet plan for your use case, this article explains the differences between shared and dedicated CPUs, goes into detail on each Droplet plan, and concludes with how to make a data-driven decision.
You can also resize a Droplet to a larger plan after creation, including resizing to a larger Droplet plan of a different kind. For example, you can resize from a Basic Droplet plan to a larger CPU-Optimized Droplet plan. See the Droplet pricing page for a full list of plans and prices.
In addition to what has already been mentioned, I could suggest taking a look at the following page that would also give you very good directions on what type of Droplet to choose based on your needs:
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.
Sign up now
Both your solution will work. It can work with one Droplet as well however my recommendation would be 1 Droplet with a Managed Database.
The Managed Database will make your life easier in terms of you not needing to manage it and as such, I think it’s a really good idea.
In terms of the size of the Droplet for our frontend, I’ll recommend starting with the smallest Droplet and upgrading in the future in case you need it