简体   繁体   中英

AWS API Gateway Stage URL is faster than Custom Domain URL. How to improve Custom Domain URL response time?

My API gateway is in us-west-2. There is a custom domain as well. I want to use the custom domain URLs. When I load tested /health endpoint from us-west-2, API gateway stage URL performed better than the custom domain URL. custom domain /health URL is around 2 times slower than the API gateway /health URL. What can I do to improve this? The custom domain name is "Edge Optimized".

APIG url's are Edge Optimized meaning they're spread out across AWS infrastructure.

You need to create an edge optimized custom domain as explained here - let me know if you need any additional guidance!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM