azservicebus
An unofficial and experimental AMQP 1.0 client for Azure Service Bus.
This crate follows a similar structure to the dotnet sdk (Azure.Messaging.ServiceBus) and provides more features than azure_messaging_servicebus. The list of supported Service Bus features can be found below (Supported Service Bus Features). A complete comparison of supported features in REST client and AMQP 1.0 client can be found here.
Because this crate currently lives in a fork of azure-sdk-for-rust and GitHub doesn't seem to
allow raising issue in forks. Please use the upstream AMQP 1.0 crate
fe2o3-amqp GitHub repo should you have any
issue/feature request.
Content
Examples
Below are two examples of sending and receiving messages from a queue. More examples can be found in the examples
Send messages to queue
use *;
async
Receive messages from queue
use *;
async
Supported Service Bus Features
Below shows supported Service Bus features
| Feature | Supported |
|---|---|
| Send messages to queue/topic | Yes |
| Receive messages from queue/subscription | Yes |
| Session receivers for queue/subscription | Yes |
| Prefetch | Yes |
| Schedule messages | Yes |
| Cancel scheduled messages | Yes |
| Peek messages | Yes |
| Complete messages | Yes |
| Abandon messages | Yes |
| Defer messages | Yes |
| Receive deferred messages | Yes |
| Dead-letter messages | Yes |
| Receive dead-lettered messages | Yes |
| Batching | Yes |
| Manage rule filters for subscriptions | Yes |
| Lock renewal | Yes |
| Transaction | Not yet |
| Processor | Not yet |
| Session processor | Not yet |
TLS Support
Communication between a client application and an Azure Service Bus namespace is encrypted using
Transport Layer Security (TLS). The TLS implementation is exposed to the user through the
corresponding feature flags (please see the feature flag section below). The user should ensure
either the rustls or native-tls feature is enabled, and at least one TLS implementation is
enabled. Enabling both features is not supported and will result in a compile-time error.
The native-tls feature is enabled by default, and it will use the native-tls crate to
provide TLS support. The rustls feature will use the rustls crate and webpki-roots crate
to provide TLS support.
Feature flags
This crate supports the following feature flags:
| Feature | Description |
|---|---|
default |
Enables "native-tls" feature |
rustls |
Enables the use of the rustls crate for TLS support |
native-tls |
Enables the use of the native-tls crate for TLS support |
transaction |
This is reserved for future support of transaction and is not implemented yet |
WebAssembly Support
This crate currently does not support WebAssembly but is planned for the future.
MSRV (Minimum Supported Rust Version)
1.65.0 is the MSRV for this crate because it uses generic associated types.
License: MIT