Question

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

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.


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.

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.

KFSys
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.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.