0
votes

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".

1
Which type of custom URL are you using, and have you added anything in front of its endpoint such as a CDN?Chris Williams
I can see the domain name is present in Route53.C S
If its "Edge Optimized" then you have CloudFront in front. Try creating a "Regional" one and compare against that.Chris Williams
Yes you can have 2 seperate custom domains on a single api gatewayChris Williams
I do not want to try 'regional' because the client can be using the REST endpoint from Chicago/Las Vegas.C S

1 Answers

1
votes

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!