Push and pull
easy 25 minWhen data moves between two parts of a system, somebody has to start the transfer.
Where it shows up
The same pattern appears across everyday software.
Kafka
Producers push records to a broker and consumers pull them. The documentation explains that this keeps a slow consumer from being overwhelmed and allows large batches.
Prometheus
The monitoring server pulls metrics from its targets over HTTP. Its FAQ lists reasons, such as telling more easily whether a target is down. Short batch jobs can push to a gateway instead.
Socket.IO
Connections begin with HTTP long polling by default and upgrade to WebSocket when it works, a hybrid for networks that block the better transport.
Mobile notifications
The phone keeps one connection to the platform's push service, and all apps share it. The app then pulls the content it needs.
Email
Mail is pushed between mail servers with SMTP, and traditionally pulled by the reader's program with POP. Newer protocols add push signals.
Live sport scores
Scores change at unpredictable times. Sending an update only on a goal avoids millions of identical answers.