Start United States USA — software Functioning of Anypoint MQ DLQ in Mule 3

Functioning of Anypoint MQ DLQ in Mule 3

223
0
TEILEN

How to configure a Queue, the DLQ, assigning a DLQ to the Parent Queue, and how the message gets routed from the Parent Queue to the DLQ after failure.
Join the DZone community and get the full member experience. Anypoint MQ is a cloud messaging service that allows customers to perform advanced asynchronous messaging between their applications. The dead-letter queue is the queue that messages get sent if they can’t be routed to their correct destination. By the end of the document, you will get a clear picture of how to configure a Queue, the DLQ (Dead Letter Queues), assigning a DLQ to the Parent Queue, and how the message gets routed from the Parent Queue to the DLQ after failure. Open Anypoint platform and select MQ in that: Note: To access Anypoint MQ you need to buy it separately from MuleSoft. In the MQ window, we need to first select a Region where we want to create our Queues, Select a Region that contains the Data Center near to our geographical area. And then will click the plus (+) symbol to create the Queues. Every Region has its own dedicated URL which will be used at the time of configuring the Queue in the Mule flow. Here, we will create two Queues: one will be named demo-DLQ (DLQ) and the other one will be the demo-MQ (Parent Queue) to which the DLQ will be assigned. The demo-DLQ will have a normal configuration. While creating the demo-MQ, we toggle the Assign a Dead Letter Queue to On State. Once the State is On we will get a dropdown option to select Dead Letter Queue Name where we can find the name of all DLQ present and here we will select our DLQ to be assigned in the Parent Queue. Down from that, there is an option to assign the number of attempts, this option defines how many retries the parent Queue will do to process the message if there is any failure while sending the message to the destination.

Continue reading...