简体   繁体   English

AWS API 网关级 URL 比自定义域 URL 更快。 如何提高自定义域 URL 响应时间?

[英]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.我的 API 网关位于 us-west-2。 There is a custom domain as well.还有一个自定义域。 I want to use the custom domain URLs.我想使用自定义域 URL。 When I load tested /health endpoint from us-west-2, API gateway stage URL performed better than the custom domain URL.当我从 us-west-2 加载经过测试的 /health 端点时,API 网关阶段 URL 的性能优于自定义域 URL。 custom domain /health URL is around 2 times slower than the API gateway /health URL.自定义域 /health URL 比 API 网关 /health URL 慢大约 2 倍。 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. APIG url 是边缘优化的,这意味着它们分布在 AWS 基础设施中。

You need to create an edge optimized custom domain as explained here - let me know if you need any additional guidance!您需要按照此处的说明创建边缘优化的自定义域 - 如果您需要任何其他指导,请告诉我!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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