Redis Performance Across Different Regions

0

I have a redis db on an EC2 in the us west region while other regions, eu-central and ap-southeast connect to it. I am using Global Accelerator to reduce the latency but I was wondering, are there other ways to reduce the latency here? The instances in other regions need to read and write on the redis Db. I was looking at elastic cache using Global Datastore but it seems the secondary redis db will be a readonly option. I was thinking of using Redis Enterprise but wondered if there is a way using AWS first.

PS. I moved my redis db from another cloud provider to AWS and saw a massive performance increase because of the latency difference. Hoping to get another way to increase performance here.

2 Answers
0

What instance size are you using? If you are using Instances which have more than 4 cores - this comes with a feature called Enhanced IO enabled by default - which improves throughput by upto 83% and upto 47% reduction in latency with no application code changes required.

Additional details can be found in this Blog - https://aws.amazon.com/blogs/database/boosting-application-performance-and-reducing-costs-with-amazon-elasticache-for-redis/

There are a few other changes that can improve overall latencies but that could involve looking at the metrics.

profile picture
answered 2 months ago
  • At the moment it's a r6a.xlarge. You do have a point. I did see that in the docs. I will spin up a new server and do some testing and return with my findings.

0

Unfortunately, there's no beating the speed of light. As you've seen, using Global Accelerator can make a difference but it isn't going to reduce latency enough for some users - because they are just further away.

Adding a read-only replica in a region closer to the users is a good idea; but that does mean that writes have to go back to the read/write replica (assuming you want synchronous writes) or you could have some process in the region local to the users that accept asynchronous write requests. Either way means a change in your application architecture.

profile picture
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions