What is the difference between point-to-point messaging and a broker-based/pub-sub model in inter-service communication?
Last updated
Point-to-point (queue): each message goes to exactly one consumer, even with many competing workers. It suits work distribution and load-leveling.
Pub/sub (topic): every subscriber gets its own copy of each event (fan-out). It suits notifications where many services react independently. The difference is delivery semantics, not whether a broker exists.
Real systems mix both: fan out to a topic, then each subscriber's queue spreads work across its instances (e.g. Kafka consumer groups, SNS to SQS).
- https://aws.amazon.com/what-is/message-broker/
- https://www.m365.fm/blog/queues-vs-topics-choosing-the-right-messaging-pattern-in-azure-service-bus/
- https://aws.amazon.com/what-is/pub-sub-messaging/
- https://aws.amazon.com/video/watch/5fe9508a438/
- https://developer.confluent.io/courses/microservices/point-to-point-vs-publish-subscribe/
- https://www.youtube.com/watch?v=fay5_xP5IZk
- https://medium.com/towardsdev/message-queues-vs-pub-sub-a-simple-guide-to-asynchronous-communication-8e163b3e3011
- https://www.geeksforgeeks.org/system-design/what-is-pub-sub/