How to use Lightsail load balancers globally instead of per region?

0

My web app's DNS is managed by Cloudflare. I have created a CNAME record that points to a Lightsail load balancer DNS. It works fine.

The question is the load balancer is created in a specific region. Ideally I want a load balancer that sends traffic to instances that are in different regions: Germany, Austrailia and USA for example.

Do I have to use Cloudflare load balancer instead? it seems to allow dispatching of traffic to origins based in different geographical locations.

Distribution/CDN is not a solution as some of the content will not be cached (videos for streaming). If I want low latency I need origins close to visitors.

Thank you.

已提問 2 年前檢視次數 674 次
1 個回答
1

AWS doesn't have a global load balancer but it is always bound to one or multiple subnets that all are within the same region (but can, and should be on multiple AZs). You could take a look at Global Accellerator -service that allow you to have a pair of static IPs that are routed to closest instance of your application. This will get bit more complex than typical Lightsail application however. I would also think CDN once more, as you don't have to cache (all) your content but you could just use other features (getting client connected to closes edge etc). You can do this either by setting cache headers at your origin server or setting default caching at CDN.

profile picture
專家
Kallu
已回答 2 年前
  • Thanks, I didn't know about Global Accelerator.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南