Hacker News new | ask | show | jobs
by marginalia_nu 1092 days 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.

2 comments

Is that CDN or DDOS protection? CDN should serve static assets near the user. Has to be quicker unless something went very wrong.
Yeah, 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.

I 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?