跳至内容

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 年前1304 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

相关内容