Pub/Sub (EN)
ConceptAlternative communication pattern to client/server for efficient data distribution
Architecture
flowchart LR P[Publisher] --> T[Topic 1] P --> T2[Topic 2] T --> S1[Subscriber 1] T --> S2[Subscriber 2] T2 --> S3[Subscriber 3] B[Broker] --> T B --> T2
In Context
- Typically used together with message brokers such as RabbitMQ, Apache Kafka or MQTT
- Related to: Message Queue, Event-Driven Architecture, Enterprise Service Bus
- Example use case: IoT devices that send sensor data to multiple systems