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개 답변
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 pictureAWS
답변함 2년 전
  • 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 pictureAWS
전문가
답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠