CNAME Proxy Performance Tips

What is the name of the domain?

doesntmatter.com

What is the issue you’re encountering

Possible FIX for slow performance of APIs using CNAME proxy

What steps have you taken to resolve the issue?

Because the documentation and ■■■■, here’s a possible fix.

We are running AWS API Gateway and are using Cloudflare to CNAME Proxy to the API Gateway. We setup a rule in CF to modify the host header so API Gateway responds correctly.

We were seeing performance degradation vs going direct to API Gateway where CF CNAME Proxy was adding 50ms - 130ms delay. Which for APIs is unacceptable.

Under Security there is a section called API Shield. We uploaded our schema to that and viola, performance improved to a pretty consistent 11ms - 15ms delay…much better.

You’re welcome.

1 Like

This topic was automatically closed after 15 days. New replies are no longer allowed.