AlgoViz

Synchronous communication

easy 24 min

In synchronous communication the caller sends a request and needs the response before that piece of work can go on.

Where it shows up

The same pattern appears across everyday software.

  • Web pages

    A browser asks for a page and shows it when the response arrives.

  • Database queries

    Most application code sends a query and waits for the rows before it continues.

  • Login

    The session starts only after the credentials are checked.

  • DNS lookups

    A program usually needs the address before it can connect, so a slow resolver delays everything after it.

  • Card authorisation

    A shop terminal waits for approved or declined. Moving the money happens later, so one purchase has a synchronous part and an asynchronous part.

  • Search suggestions

    Each request must answer in a fraction of a second, so it has a tight time budget and shows nothing when late.