Pluggable foundation blocks for building distributed apps.
$ dotnet add package Foundatio.AzureServiceBusPluggable foundation blocks for building loosely coupled distributed apps.
| Feature | Description |
|---|---|
| Caching | In-memory, Redis, and hybrid caching with automatic invalidation |
| Queues | Reliable message queuing with Redis, Azure, AWS SQS |
| Locks | Distributed locking and throttling |
| Messaging | Pub/sub with Redis, RabbitMQ, Kafka, Azure Service Bus |
| Jobs | Background job processing with queue integration |
| File Storage | Unified file API for disk, S3, Azure Blob, and more |
| Resilience | Retry policies, circuit breakers, and timeouts |
dotnet add package Foundatio.AzureServiceBus
// Queuing
IQueue<WorkItem> queue = new AzureServiceBusQueue<WorkItem>(o => o
.ConnectionString("Endpoint=sb://..."));
await queue.EnqueueAsync(new WorkItem { Data = "Hello" });
var entry = await queue.DequeueAsync();
// Messaging
IMessageBus messageBus = new AzureServiceBusMessageBus(o => o
.ConnectionString("Endpoint=sb://..."));
await messageBus.PublishAsync(new MyMessage { Data = "Hello" });
| Provider | Caching | Queues | Messaging | Storage | Locks |
|---|---|---|---|---|---|
| In-Memory | ✅ | ✅ | ✅ | ✅ | ✅ |
| Redis | ✅ | ✅ | ✅ | ✅ | ✅ |
| Azure Storage | ✅ | ✅ | |||
| Azure Service Bus | ✅ | ✅ | |||
| AWS (S3/SQS/SNS) | ✅ | ✅ | ✅ | ||
| RabbitMQ | ✅ | ||||
| Kafka | ✅ | ||||
| Minio | ✅ | ||||
| Aliyun | ✅ | ||||
| SFTP | ✅ |
Want the latest CI build before it hits NuGet? Add the Feedz source and install the pre-release version:
dotnet nuget add source https://f.feedz.io/foundatio/foundatio/nuget -n foundatio-feedz
dotnet add package Foundatio.AzureServiceBus --prerelease
Or add to your NuGet.config:
<configuration>
<packageSources>
<add key="foundatio-feedz" value="https://f.feedz.io/foundatio/foundatio/nuget" />
</packageSources>
<packageSourceMapping>
<packageSource key="foundatio-feedz">
<package pattern="Foundatio.*" />
</packageSource>
</packageSourceMapping>
</configuration>
Contributions are welcome! Please feel free to submit a Pull Request. See our documentation for development guidelines.
Development Setup:
Foundatio.AzureServiceBus.slnx in Visual Studio or VS Codedotnet build to builddotnet test to run testsApache 2.0 License