Azure Service Bus Transport

Source
NuGet Package NServiceBus.Transport.AzureServiceBus (1.5)
Target NServiceBus Version: 7.x

The Azure Service Bus transport leverages the .NET Standard Microsoft.Azure.ServiceBus client SDK.

Azure Service Bus is a messaging service hosted on the Azure platform that allows for exchanging messages between various applications in a loosely coupled fashion. The service offers guaranteed message delivery and supports a range of standard protocols (e.g. REST, AMQP, WS*) and APIs such as native pub/sub, delayed delivery, and more.

Transport at a glance

Feature
TransactionsNone, ReceiveOnly, SendsWithAtomicReceive
Pub/SubNative
TimeoutsNative
Large message bodieswith Premium tier or data bus
Scale-outCompeting consumer
Scripted DeploymentSupported using NServiceBus.Transport.AzureServiceBus.CommandLine
InstallersOptional
The Azure Service Bus transport only supports Standard and Premium tiers of the Microsoft Azure Service Bus service. Premium tier is recommended for production environments.

Configuring an endpoint

To use Azure Service Bus as the underlying transport:

var transport = endpointConfiguration.UseTransport<AzureServiceBusTransport>();
transport.ConnectionString("Endpoint=sb://[NAMESPACE].servicebus.windows.net/;SharedAccessKeyName=[KEYNAME];SharedAccessKey=[KEY]");
The Azure Service Bus transport requires a connection string to connect to a namespace.

Samples

Related Articles


Last modified