3 ms·
CDNs can actually add quite a bit of latency depending on where you're located. My server is located in Sweden, and for users in US West, access through Cloudf
by marginalia_nu 3y ago
CDNs can actually add quite a bit of latency depending on where you're located.
My server is located in Sweden, and for users in US West, access through Cloudflare adds like 100-150ms ping. It's very noticeable, bordering on intolerable for API access.
- komon 3y agoI wonder what your actual cache hit rate is? Sounds like it could use some tuning since 100-150ms sounds consistent with most requests hitting the origin?
- quickthrower2 3y agoIs that CDN or DDOS protection? CDN should serve static assets near the user. Has to be quicker unless something went very wrong.
- marginalia_nu 3y agoYeah, you can't have a public search endpoint or it will get spammed into oblivion. API endpoint is not cloudflared anymore though, since I use an API key system. But anything that is anonymous is basically toast if you don't use serious bot mitigation. Cloudflare rejects about 2.5M search queries per day from bots. About ~20k make it through, and some of those are humans.