Report this

What is the reason for this report?

How to setup App platform in multiple regions

Posted on August 3, 2023
Benjamin

By Benjamin

Developer

Hello, we would like to launch a web app (server), a static website and a managed database for availability in multiple regions (United-States and Europe).

How would we do that using App Platform? How is handled the data replication?

Thank you.



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.

Hi there,

The DigitalOcean App Platform does not natively support multi-region deployment, data replication, or active geo-redundancy out of the box. You would have to manually set up these aspects yourself.

For multi-region availability, you would typically have to set up separate applications in each region, each with their own database.

Data replication can indeed be challenging, with the DigitalOcean Managed database clusters you can add read replicas easily, but having an active-active replication setup is not support. So this would mean that you will need to setup and maintain yourself. For exmaple you could do that with a Galera cluster:

https://www.digitalocean.com/community/tutorials/how-to-configure-a-galera-cluster-with-mysql-on-ubuntu-18-04-servers

I could also suggest this tutorial here:

https://www.digitalocean.com/community/tutorials/what-is-high-availability

Hope that this helps!

Best,

Bobby

Hello,

There is no option to change the app region directly from the app UI, but you can change it from the app spec file of your app.

follow the instructions below.

Hope this helps!

Cheers, Sri Charan

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.