CPC H04L 67/101 (2013.01) [H04L 43/0864 (2013.01); H04L 43/16 (2013.01)] | 15 Claims |
1. A method, comprising:
receiving, at a first server, a first request from a client device;
determining that a latency measurement instruction has been issued;
based on determining that the latency measurement instruction has been issued and in response to receiving the first request from the client device, providing a first redirect response to the client device, the first redirect response causing the client device to submit a second request to a second server;
receiving, at the first server, a final request, the final request being provided to the first server from the client device based on the client device receiving a second redirect response from the second server;
determining a latency measurement between the client device and the second server based, at least in part, on a time between when the first redirect response is provided to the client device and when the final request is received by the first server;
determining whether the latency measurement is above a latency threshold; and
in response to determining that the latency measurement is above the latency threshold, causing the client device to access the second server instead of the first server.
|