Azure Service Bus settle
1. Overview
This service decides, halfway through the flow, what happens to the Azure Service Bus message the flow is processing: complete it, offer it again, or move it to the dead-letter queue. The message itself is passed on unchanged and the flow continues normally.
It only has something to settle in a flow that starts with an Azure Service Bus listener whose Settlement Mode is FLOW_SETTLED. In any other mode the listener has already settled the message, and this component does nothing.
2. Attributes
In the table below, you will find an explanation of these properties. All attributes with a * are mandatory.
|
|
3. When to use it
Use it where the flow already knows the outcome, earlier than its producer does:
-
COMPLETE after a step that has safely stored the message, so a failure later on does not send it round again.
-
ABANDON when the flow recognises a temporary problem, such as a system that is down, and another attempt is likely to succeed.
-
DEAD_LETTER when the message itself is wrong — a validation error, an unknown customer — so retrying it can never help. Record what was wrong in Dead Letter Description, and a listener reading the dead-letter queue can report on it later.
|
The first decision made about a message is the one that counts. Once this component has settled a message, the end of the flow no longer changes it, and a second settle component later in the same flow does nothing. After a splitter, COMPLETE waits until every part has passed this component. ABANDON and DEAD_LETTER take effect on the first part. |