내용으로 건너뛰기

Rds cross region latency issue

0

We have an rds instance in us-east-1, the applications that access the rds are in us-east-1 and us-east-2. the two regions have vpc peering. we are load balancing the request received by using route53 weighted routing policy. we are experiencing 10 ms delay when communicating across regions. currently, these 10 ms delays are acceptable between microservices. but when the applications in region2 are accessing rds, we are facing a considerable delay. (due to the large amount of database calls of hibernate ). Are there any was to reduce this database latency ?

질문됨 3년 전1.3천회 조회
2개 답변
0

"Single digit ms" latency is the design of availability zones, not regions. While us-east-2 and us-east-1 are closer than other regions in the US, it is highly likely the latency will exceed 10 ms. See https://aws.amazon.com/about-aws/global-infrastructure/regions_az/

AWS
답변함 3년 전
0

The best method to lower latency when accessing RDS between two regions, in my opinion, would be to set up an RDS read replica in the US-East-2 region. Applications in that area could access the database locally for reads, and query latency would be greatly decreased.

If you must use the US-East-1 region's primary database for writes, do so, however, cross-region traffic will increase write latency. The best choice for write-dominant applications in Region 2 would be Aurora Global Database, which provides high-performance inter-region replication, enabling writes in each region and quick, low-latency local reads.

See More: https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_ReadRepl.html https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.RegionsAndAvailabilityZones.html

답변함 3달 전

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

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

관련 콘텐츠