Beckett 0.9.4
See the version list below for details.
dotnet add package Beckett --version 0.9.4
NuGet\Install-Package Beckett -Version 0.9.4
<PackageReference Include="Beckett" Version="0.9.4" />
paket add Beckett --version 0.9.4
#r "nuget: Beckett, 0.9.4"
// Install Beckett as a Cake Addin #addin nuget:?package=Beckett&version=0.9.4 // Install Beckett as a Cake Tool #tool nuget:?package=Beckett&version=0.9.4
Beckett
The missing pieces to build event-driven applications. Event sourcing is a powerful pattern for building applications but reading and writing events to an event store is only half of the equation. Beckett aims to fill in the gaps:
- Message Store - store messages (events, commands, jobs, etc...) in streams
- PostgreSQL message storage is provided out of the box, but Beckett is designed to compliment your existing
event or message store - use your own store and implement the
IMessageStorage
interface to integrate with Beckett
- PostgreSQL message storage is provided out of the box, but Beckett is designed to compliment your existing
event or message store - use your own store and implement the
- Subscriptions - subscribe to messages and process them in order by stream
- Horizontal scalability - use auto-scaling to have as many workers as needed processing messages in parallel where the work is distributed automatically across all available nodes without needing to manage the distribution by way of consumer groups or similar mechanisms
- Retries - built-in retry support for failed messages - since messages are processed by stream per subscription, a failed message only blocks a single stream for a subscription at a time and the rest of the streams can continue processing for that subscription
- Scheduled / recurring messages - schedule messages to be sent at a future time with cancellation support, or create a recurring schedule to send messages at a regular interval using cron expressions for scheduled jobs, etc...
- Open Telemetry - built-in support to provide tracing and metrics
- Dashboard - view metrics, browse messages, with future plans for subscription management, retrying failed messages, and more
Usage
After installing the Beckett
package from NuGet, you can add Beckett to your worker like so:
var builder = Host.CreateApplicationBuilder(args);
builder.AddBeckett();
var host = builder.Build();
host.Run();
Or an ASP.NET Core application along with the Beckett dashboard that is available in the Beckett.Dashboard
NuGet package:
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapBeckettDashboard("/beckett");
app.Run();
In this example, the dashboard will be available at http://localhost:<port>/beckett
.
Also, since MapBeckettDashboard
returns a RouteGroupBuilder
instance you can further configure the route group as
needed to add authorization and so on using standard ASP.NET Core route group configuration methods.
Configuration
There are a number of options available in Beckett which can be configured inline:
builder.AddBeckett(
options =>
{
options.WithSubscriptions("TodoList");
});
Or in appsettings.json
:
{
"Beckett": {
"Subscriptions": {
"Enabled": true,
"GroupName": "TodoList"
}
}
}
Samples
This documentation is a work in progress - in the meantime take a look at the sample application to see all the features in action.
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. |
-
net8.0
- Cronos (>= 0.8.4)
- Microsoft.Extensions.Configuration.Binder (>= 8.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.1)
- Npgsql (>= 8.0.3)
- OpenTelemetry (>= 1.9.0)
- UUIDNext (>= 3.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Beckett:
Package | Downloads |
---|---|
Beckett.Dashboard
Messaging and event sourcing library |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.9.9 | 109 | 8/29/2024 |
0.9.8 | 35 | 8/29/2024 |
0.9.7 | 167 | 8/28/2024 |
0.9.6 | 144 | 8/27/2024 |
0.9.5 | 52 | 8/27/2024 |
0.9.4 | 516 | 8/16/2024 |
0.9.3 | 538 | 8/14/2024 |
0.9.2 | 348 | 8/12/2024 |
0.9.1 | 232 | 8/8/2024 |
0.9.0 | 266 | 8/5/2024 |
0.8.13 | 33 | 8/2/2024 |
0.8.12 | 29 | 8/2/2024 |
0.8.11 | 408 | 7/26/2024 |
0.8.10 | 78 | 7/25/2024 |
0.8.9 | 74 | 7/25/2024 |
0.8.8 | 259 | 7/21/2024 |
0.8.7 | 116 | 7/19/2024 |
0.8.6 | 67 | 7/19/2024 |
0.8.5 | 156 | 7/16/2024 |
0.8.4 | 90 | 7/16/2024 |
0.8.3 | 74 | 7/16/2024 |
0.8.2 | 165 | 7/13/2024 |
0.8.1 | 78 | 7/13/2024 |
0.8.0 | 69 | 7/13/2024 |
0.7.9 | 90 | 7/12/2024 |
0.7.8 | 75 | 7/12/2024 |
0.7.7 | 89 | 7/11/2024 |
0.7.6 | 75 | 7/10/2024 |
0.7.5 | 74 | 7/10/2024 |
0.7.4 | 76 | 7/10/2024 |
0.7.3 | 74 | 7/10/2024 |
0.7.2 | 69 | 7/9/2024 |
0.7.1 | 76 | 7/9/2024 |
0.7.0 | 68 | 7/9/2024 |