Synchronous and asynchronous message consumers
The synchronous message consumer receives the messages from a queue synchronously and the asynchronous message consumer receives message from a queue asynchronously.
Synchronous message consumers
A synchronous message consumer receives one message at a time. When the Receive(wait interval) method is used; the call waits only a specified period of time in milliseconds for a message, or until the message consumer is closed.
If the ReceiveNoWait() method is used, the synchronous message consumer receives messages without any delay; if the next message is available, it is received immediately, otherwise a pointer to a null Message object is returned.
Asynchronous message consumers
The message listener registered by the application is invoked whenever a new message is available on the queue.
Parent topic: Message consumers