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
Answer a question...

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.

My opinion is that it depends on you. Is one better for you than the other? Due to the fact that you used it according to your own will, not due to someone else’s suggestion. There is a possibility that you won’t benefit from the app that someone recommended.

Well, I think It depends on you. Which is best for you nor which is not for you? Because you used it according to your own will not either someone’s suggestion. Maybe the app that someone recommended is good for him not for you.

Site Moderator
Site Moderator badge
July 11, 2022

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.