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.

The Azure Service Bus settle properties
Attribute Description

Name*

By default, we fill this out with the technical tag, followed by a serial number. Changing the name is optional.

Enabled

Set this value to true, if you want this service to be enabled.

Action

What to do with the message. COMPLETE (the default) removes it from the entity, ABANDON offers it again for another attempt, and DEAD_LETTER moves it to the dead-letter queue at once.

Dead Letter Reason

Only shown for DEAD_LETTER. The reason recorded on the message. The default is flow.

Dead Letter Description

Only shown for DEAD_LETTER. The description recorded on the message, for example the content of a validation error.

Description

Description of the specific service. This is for documentation purposes.

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.