AlgoViz

Asynchronous communication

medium 26 min

In asynchronous communication the sender hands a message to a broker and goes on without waiting for the work to be done.

Where it shows up

The same pattern appears across everyday software.

  • Email

    Mail servers store and forward messages and try again when the receiver is down. Nobody expects both people to be present.

  • Video upload sites

    The upload ends quickly and a page says processing. Conversions into several sizes run in workers.

  • Shop confirmation

    The order is accepted first. The email, the invoice and the parcel label follow from messages.

  • Event streams

    Kafka began at LinkedIn and is widely used to send the same events to several independent readers.

  • Bank batch payments

    Many transfers are collected and processed later, with a status that moves from pending to done.

  • Phone notifications

    An app backend hands a notification to a push service, which delivers it when the phone can be reached.