Hacker News new | ask | show | jobs
by cortesoft 848 days ago
I work for a CDN who uses anycast for routing. It does work really well and is robust to failures... it auto heals when routes go down, and is immune to issues with DNS caching or people using DNS servers that aren't near their actual location.

There are down sides, though. Control is not very fine grained, meaning you can only move fairly large chunks of traffic at a time. It is also a method better suited to fewer, larger POPs instead of many, smaller, pops, which has its own limitations.

Another option that I have seen used for large download distributions (e.g. game downloads) is to use http redirects... the first request hits a server whose only job is to choose where the actual download will come from, and return a 301 redirect pointing to the actual content targeted to a specific pop or server. This works well, because you can choose exactly where traffic goes without the downsides of DNS redirection, but you do get the downsides of needing two requests for each client request, as well as requiring client support for redirects (which not all traffic supports)

2 comments

surprised you’ve seen this redirect method. i thought it was patented by google. the most obvious search only turns up an edgio patent. i’ll have to search harder

https://patents.google.com/patent/US20140108674A1/en

yeesh i didnt realize there was a patent on that. your link lines up with the authors predictions of cdns coming up with and patenting different ways to accomplish this. i guess it makes sense and maybe it isn't a bad thing, but i never thought about it. i wonder how anyone infringing on that is even caught? is something like that ever enforced?

edit: i was blind and missed that it is marked as abandoned "ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION". i never look at these so maybe thats a normal ending, but it is interesting to me.

this guy sounds uhhh exactly the same https://patents.google.com/patent/US11706292B1/en...? reading these brings up the duration of a connection as a relevant dimension. in my bubble i've only dealt with relatively short lived conns. long lived conns must be more likely to get caught up in routing changes so a redirect to unicast can help.

The thing about know-how it's that it is a secret. But the moment you fill a patent, it is not a secret anymore, but clearly http redirector concept based of geoip db lookup of the client is as old as the internet... We did this in early 2000 just based on public IANA ip address split over each RIR as a naive approach without a proper geoip DB.
I work for Edgio :)
Not a bad approach. Minor nitpick to your hypothetical (lol) -- in this case one may want to use a 302 redirect since you might want to be consulted again for a subsequent download, rather than have your response cached (potentially on behalf of multiple users).
You are right, it was a typo I meant 302