Article directory
Generic Messaging Model for Message Queuing
The message passing model
Generally speaking, there are two main message delivery models for message queues:
1. Point-to-Point (P2P), a message is consumed by a consumer.
2. Publish/Subscribe (Pub/Sub), a message is consumed by multiple consumers.
1. P2P model (peer-to-peer model)
In the P2P (peer-to-peer) model, a message can only be consumed by one consumer. The message queue is responsible for receiving messages published by producers, while supporting consumers to obtain messages from the queue.
Features of P2P:
- Each message can only be consumed by one consumer (Consumer &