News for hackers. Stuff that matters.
Re:Noticing when an app is only hosted in us-east-1 by marginalia_nu on Thursday June 29, 2023 @05:02AM (#36518070)
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.

Re:Noticing when an app is only hosted in us-east-1 by komon on Thursday June 29, 2023 @08:01AM (#36519282)
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?
Re:Noticing when an app is only hosted in us-east-1 by quickthrower2 on Thursday June 29, 2023 @08:17AM (#36519412)
Is that CDN or DDOS protection? CDN should serve static assets near the user. Has to be quicker unless something went very wrong.
Re:Noticing when an app is only hosted in us-east-1 by marginalia_nu on Thursday June 29, 2023 @08:32AM (#36519521)
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.