Question

Deploying Django app in a droplet and React app in app platform

I was wondering is it possible to deploy Django app in a droplet and React app in app platform, and if it is, is it good for performance compared to deploying everything in a droplet (by serving react to Django as static files) or deploying everything in an app platform.

btw I prefer not to deploy everything in one project, because it seems a little bit messy, I want to separate the frontend and the backend.


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 there,

This should work as expected with deploying your static site on the App Platform and the Django app on a Droplet. There should not be really any noticeable performance differences.

Having said that, I would personally go with deploying both on the App Platform. The App Platform allows you to have a single app composed of multiple separate components, so technically your frontend and backend would still be separate as they will be running in different containers, but you would be able to take advantage of the App Platform auto deploy features and you would not have to manage your Droplet separately.

Hope that this helps!

Best,

Bobby