frugal
frugal

Reputation: 5

Improving latency times for EC2 from different geographic areas

We have an EC2 instance in US East, and our latency for users in the UK + AU is about 1-2 seconds higher. We are only dealing with text data and an RDS server in the same zone. Provided we want to go the route of creating another image instance of the primary EC2. How does the process work in lowering latency? Per our understanding:

TLDR: How do we route UK users to the UK EC2 server, what does the setup look like?

Upvotes: 0

Views: 1057

Answers (1)

John Rotenstein
John Rotenstein

Reputation: 270154

I recommend that you use Latency-based routing - Amazon Route 53:

If your application is hosted in multiple AWS Regions, you can improve performance for your users by serving their requests from the AWS Region that provides the lowest latency.

You would configure one DNS Name to route to multiple IP addresses. Route 53 will examine the location of the incoming request and route the traffic to the destination with the lowest latency.

This is not quite the same as geographic routing because some countries have better Internet connectivity and traffic will be routed according to latency rather than distance.

Alternatively, you can use AWS Global Accelerator, which routes traffic across the AWS global network. It uses a single IP address that exists in multiple locations (known as anycast) to redirect traffic to the closest (fewest-hop) endpoint of the AWS global network, then sends traffic over that network to the closest AWS location where you have provisioned services. This can achieve lower latency than routing across the Internet, but incurs a per GB cost for traffic.

Upvotes: 2

Related Questions