Service Bus adapter
Bidirectional integration with Azure Service Bus. Speaks queues and topic subscriptions natively, with a choice of receive mode on the consume side and the standard message properties on the send side.
Azure Service Bus is the broker most Azure-hosted integrations end up touching. The adapter supports the two endpoint types Service Bus exposes, queues for point-to-point, and topic subscriptions for fan-out, on both the consume and send sides.
One binding addresses one entity. Pick a queue when there is one logical reader; pick a topic + subscription when several independent consumers each need a copy.
On a receive port, Receive Mode decides when a message leaves Service Bus. ReceiveAndDelete, the default, removes it as soon as it is received. PeekLock leases it instead: the bus publication is attempted and the message is completed only after the publish succeeds, and Lock Renewal keeps the lease alive during long receive flows.
With PeekLock, On Failure decides what happens when publishing fails. Abandon, the default, releases the message so Service Bus redelivers it, and the dead-letter queue eventually catches messages that fail repeatedly. DeadLetter moves it to the dead-letter queue straight away. Complete removes it.
Turn on Sessions to consume a session-enabled queue or subscription, and Batched to receive messages in batches. Each switch brings its own settings, listed below.
On a send port, the adapter sends the message body to the configured queue or topic. The standard Service Bus message properties are set on the port: message ID, correlation ID, session ID, partition key, subject, reply-to, content type and time-to-live, plus any application properties. Schedule At enqueues the message for a later time instead of now. Two-way mode uses the Service Bus request/reply convention: set Reply To and Correlation ID, the adapter waits for the response, and the response is published to the bus.
The Service Bus adapter pairs with an Authentication whose definition is Azure Service Bus Connection String. It has one field, Connection String, the connection string for your namespace. The Listener and the Caller each take their own Authentication, created for that adapter.
| Field | Default | What it does |
|---|---|---|
| Auth Config Type | Static | The only option on a receive port. |
| Auth Config | Required | The Authentication that supplies the connection string. |
| Entity Type | Queue | Queue, or Subscription for a topic subscription. |
| Queue Name | Required for a queue | The queue to consume. Browse lists the queues in the namespace. |
| Topic Name, Subscription Name | Required for a subscription | The topic, and the subscription on it to consume. |
| Receive Mode | ReceiveAndDelete | ReceiveAndDelete or PeekLock, see above. |
| Sessions | Off | Consume a session-enabled queue or subscription. |
| Batched | Off | Receive messages in batches. |
| Lock Renewal (sec) | Empty | How long the lock is renewed automatically while a message is processed. Shown when Sessions is off. |
| Prefetch | 0 | How many messages to fetch ahead of processing. |
| Concurrency | Empty | How many messages are processed at once. Shown when Sessions and Batched are both off. |
| Session Idle (sec) | Empty | With Sessions on: how long to wait for a session’s next message before moving on. |
| Sessions In Parallel | Empty | With Sessions on: how many sessions are processed at once. |
| Calls Per Session | Empty | With Sessions on: how many messages of one session are processed at once. |
| Batch Size | Empty | With Batched on: the most messages in one batch. |
| Min Batch Size | Empty | With Batched on: the fewest messages to wait for. |
| Batch Wait (sec) | Empty | With Batched on: how long to wait for a batch to fill. |
| On Failure | Abandon | Abandon, DeadLetter or Complete, see above. |
| Tracking ID Property | Empty | The name of a Service Bus message property whose value becomes the iQBus Tracking ID. |
| Field | Default | What it does |
|---|---|---|
| Auth Config Type | Static or Dynamic | Static names one Authentication on the port, Dynamic resolves it per message. |
| Auth Config | Required | The Authentication that supplies the connection string. |
| Entity Type | Queue | Queue or Topic. |
| Queue Name or Topic Name | Required | Where the message is sent. |
| Message ID | Empty | The Service Bus message ID. |
| Correlation ID | Empty | The correlation ID. Used with Reply To for two-way. |
| Session ID | Empty | Required when sending to a session-enabled queue or topic. |
| Partition Key | Empty | The partition key, for partitioned entities. |
| Subject | Empty | The message subject. |
| Reply To | Empty | The entity the reply comes back on, for two-way. |
| Content Type | Empty | application/json, application/xml, text/plain or application/octet-stream. |
| Time To Live (sec) | 1209600 (14 days) | How long the message lives in Service Bus before it expires. |
| Time Zone | UTC | The zone Schedule At is read in. |
| Schedule At | Empty | Enqueue the message at this time instead of now. |
| Application Properties | Empty | Custom properties added to the message. |
That is the Service Bus adapter
Queues and topic subscriptions, ReceiveAndDelete or PeekLock on consume, request/reply on two-way send. Back to Adapters.