Skip to main content

Publish-Subscribe Pattern

The Publish-Subscribe (Pub-Sub) pattern is a messaging pattern where senders of messages, called publishers, do not program the messages to be sent directly to specific receivers, called subscribers.

Pub-Sub Architecture

Overview

In a distributed system, pub-sub systems like Apache Kafka, RabbitMQ, and Google Cloud Pub/Sub provide scalable asynchronous communication.