AlgoViz

Latency

easy 30 min

Latency is how long one request takes.

Where it shows up

The same pattern appears across everyday software.

  • Search pages

    Google's published experiments found that people who got slower results searched less, and went on searching a little less for weeks after the delay ended.

  • Content delivery networks

    They exist to shorten the trip: copies of files sit in many cities so that the round trip is short.

  • Online games and calls

    Every move or word must cross the network, so players choose a nearby region and calls use protocols that skip late packets.

  • Trading systems

    Firms place machines in the same building as the exchange, because distance is the one part that code cannot remove.

  • Large search back ends

    One query asks very many machines. Dean and Barroso describe hedged requests that keep a few slow ones from deciding the total.

  • TLS 1.3 and QUIC

    Newer protocols removed handshake round trips: TLS 1.3 needs one instead of two, and QUIC combines transport and security in one.