Question

Hosting same website at different locations

Posted October 11, 2018 2.3k views
ApacheDNSLoad BalancingDeploymentHigh Availability

Hi there,

Currently, I am hosting my website in my country (Southeast Asia) on my server and wish to replicate the website to US using DigitalOcean.

I am hoping from this implementation, US users (or Europe) will connect to this website instead for faster loading time (instead of my server), like geographical load balancing.

I believe some kind of DNS service may be needed to be used, and has read up on services such as GeoDNS, Amazon Route 53.

1) Is this setup even possible or nontrivial?

2) How should I handle the DNS service for the same domain?

3) Are two web servers allowed to have the same domain (albeit different IP?)

4) What would be the best way to replicate the site contents?

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.

×
Submit an Answer
1 answer

Hello,

Indeed as X40C mentioned Cloudflare is a very good fit for your needs.

You could spin up multiple Droplets in different regions and have your Domain name managed via Cloudflare. Then Cloudflare would allow you to do geographical load balancing and distribute the traffic among your Droplets in the different regions.

Best,
Bobby