react vs nodejs: which one to chose for my apps?


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.

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.

Hi @ervinjason,

You can’t use this setup on one Droplet hosting all if you want to use a Managed Database. What you can do is either have one Droplet that hosts your frontend and backend alongside MySQL together or have a Droplet for your frontend and get a Managed Database.

Either way would be fine. If you intend your App to get a lot of traffic, I’ll suggest separating the frontend and the Dabatase (Managed Database). Otherwise, if you don’t expect a lot of traffic in the beginning, one Droplet should suffice.