PulseBus.Extensions
1.0.2
dotnet add package PulseBus.Extensions --version 1.0.2
NuGet\Install-Package PulseBus.Extensions -Version 1.0.2
<PackageReference Include="PulseBus.Extensions" Version="1.0.2" />
<PackageVersion Include="PulseBus.Extensions" Version="1.0.2" />
<PackageReference Include="PulseBus.Extensions" />
paket add PulseBus.Extensions --version 1.0.2
#r "nuget: PulseBus.Extensions, 1.0.2"
#:package PulseBus.Extensions@1.0.2
#addin nuget:?package=PulseBus.Extensions&version=1.0.2
#tool nuget:?package=PulseBus.Extensions&version=1.0.2
⚡ PulseBus.Extensions
PulseBus.Extensions is an extension pack designed to enhance PulseBus with production-ready features.
✨ Features
This library provides a comprehensive set of extensions, including:
Serialization
- System.Text.Json (Default)
- Newtonsoft.Json (Optional)
- Protobuf (Optional)
Middlewares
- Logging: For comprehensive event logging.
- Retry: Implements robust retry mechanisms.
- Metrics (Optional): For performance monitoring.
- Circuit Breaker (Optional): Enhances fault tolerance.
Retry Policies
- Exponential Retry: Retries with exponentially increasing delays.
- Linear Retry: Retries with fixed delays.
- No Retry: Disables retry attempts.
Idempotency
- In-memory Idempotency Store: Ensures message processing occurs only once.
📦 Installation
To integrate PulseBus.Extensions into your project, use the following .NET CLI command:
dotnet add package PulseBus.Extensions
🚀 Usage
Adding PulseBus with Default Extensions
You can easily configure PulseBus with a standard set of extensions:
services.AddPulseBus(builder =>
{
builder.UseRabbitMq(options =>
{
options.Host = "localhost";
options.Username = "guest";
options.Password = "guest";
});
builder.AddDefaultExtensions();
});
Manual Configuration
For more granular control, you can manually configure individual extensions:
builder.UseJsonSerializer();
builder.UseExponentialRetry(5);
builder.UseRetryMiddleware();
builder.UseInMemoryIdempotency();
builder.UseLogging();
🧱 Architecture
PulseBus.Extensions is modularly designed, with features organized into distinct directories:
Serialization/Middlewares/RetryPolicies/Idempotency/Extensions/
Each module is optional and can be enabled independently, allowing you to include only the functionalities your application requires.
💖 Support
This project is developed and maintained by Andrés Mariño. If you find this library useful, consider supporting its continued development:
📝 License
This project is licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.Logging (>= 10.0.8)
- PulseBus (>= 1.0.4)
-
net8.0
- Microsoft.Extensions.Logging (>= 10.0.8)
- PulseBus (>= 1.0.4)
-
net9.0
- Microsoft.Extensions.Logging (>= 10.0.8)
- PulseBus (>= 1.0.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on PulseBus.Extensions:
| Package | Downloads |
|---|---|
|
PulseBus.RabbitMQ
RabbitMQ provider for PulseBus, the minimalistic and extensible messaging abstraction for .NET. |
GitHub repositories
This package is not used by any popular GitHub repositories.