Question

How to setup App platform in multiple regions

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.


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.

Sri Charan Madhavapeddi
DigitalOcean Employee
DigitalOcean Employee badge
August 7, 2023

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

Bobby Iliev
Site Moderator
Site Moderator badge
August 5, 2023

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

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

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

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

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