A queue is the simplest entity available in the service. You can define it as follows:
In the preceding sample, you can see that we have the following concepts:
- Producer: An application or a service, which pushes a message to a queue
- Queue: A container for messages
- Consumer: An application or a service, which reads messages from a queue using a pull model
A pull model means that a producer has actually to ask a queue to receive messages. Of course, there can be multiple producers and multiple consumers—this is where the lock duration feature is especially helpful as it ensures that only a single consumer reads a message at any one ...