Pub/Sub is a messaging pattern in which publishers send messages to a message broker, which then forwards the messages to subscribers that have expressed an interest in receiving them. This pattern decouples the publishers from the subscribers, allowing for more scalable and flexible communication between the two. Pub/Sub is often used in distributed systems, where it can be used to enable communication between microservices, or to enable real-time data processing and event-driven architectures.

Micro services. Direct vs indirect communication.

1 min read