News for hackers. Stuff that matters.
Re:Noticing when an app is only hosted in us-east-1 by quickthrower2 on Thursday June 29, 2023 @02:14AM (#36516977)
I think cloudflare is in front of HN these days
Re:Noticing when an app is only hosted in us-east-1 by kiwijamo on Thursday June 29, 2023 @02:22AM (#36517037)
It is not. A simple traceroute shows traffic from Auckland, New Zealand is routed all the way to the San Diego via Los Angeles. Cloudflare sites typically have traceroutes terminating here at Auckland (best case scenario) or in some cases across the pond in Sydney, Australia.

It is interesting to note however I don't observe much latency issues despite a 130ms round trip.

Re:Noticing when an app is only hosted in us-east-1 by re-thc on Thursday June 29, 2023 @02:26AM (#36517066)
~150ms is usually acceptable especially if there's no Javascript and other extra delays. >=200ms is usually. where it really shows.
Re:Noticing when an app is only hosted in us-east-1 by littlestymaar on Thursday June 29, 2023 @03:11AM (#36517359)
Keep in mind that 150ms round-trip latency means at least 600ms latency when opening a webpage because of the TCP and TLS handshake.

But even 600ms is OK on today's web (or even on today's desktop apps it seems…)

Re:Noticing when an app is only hosted in us-east-1 by re-thc on Thursday June 29, 2023 @03:19AM (#36517416)
> Keep in mind that 150ms round-trip latency means at least 600ms latency when opening a webpage because of the TCP and TLS handshake.

The solution there is use a CDN, even for the API. Or some anycast IP solution like Global Accelerator (AWS), Global load balancer (GCP) or Front Door (Azure).

You connect to the nearest region for HTTPS handshake and then that takes the "fastest" route back to your origin.

There's a video from AWS documenting how Slack did exactly that: youtube.com/watch?v=oVaTiRl9-v0

Re:Noticing when an app is only hosted in us-east-1 by TekMol on Thursday June 29, 2023 @02:17AM (#36516993)
Have you thought about testing that assumption?