Consider a company that wants to provide HTTP services regionally from a dynamic data center of their choice for a given set of users or IP addresses (e.g. for latency management purposes) under a given domain that they own (e.g. google.com).
My understanding is that when a client (a user) makes an HTTP request (e.g. GET
), this request may resolve to an IP address that may have been provided by an ISP DNS server and not by the company in question (putting aside whether or not this was cached in /etc/hosts
, etc).
Thus this IP address may not be the one that the company wants to route traffic to. E.g. it could be a bad data center e.g. in a bad region for that user / location at that moment for whatever reason, which could lead to, say, long routing times for IP traffic (e.g. serving UK HTTP requests from the US).
How can the HTTP services company control programmatically in practice, even if only statistically and not immediately, what IP addresses the HTTP traffic for a given user (IP or location) should go to?