3 ms·
I have been trying to find what algorithms or techniques are used to actually accomplish the routing whereby the edge server closest to the user is chosen. Is t
by xwowsersx 4y ago
I have been trying to find what algorithms or techniques are used to actually accomplish the routing whereby the edge server closest to the user is chosen. Is this accomplished by pinging multiple servers and choosing the one with the lowest TTFB?
- sgammon 4y agothat’s one way, yes, but it relies on DNSLB, which necessitates shorter TTLs, which means more round trips to DNS. the smooth way to do this (how Google and others do it, the big boys) is via Anycast routing, where you are IP-routed to the nearest available node (I.e. all nodes globally share an external IP identity and so DNS is not driving LB or routing). https://en.m.wikipedia.org/wiki/Anycast https://en.m.wikipedia.org/wiki/Anycast edit: i should say, DNSLB needs shorter TTLs, lots of monitoring, and you're already in reactive mode, but otherwise it is a great solution.