Rystem.Queue
10.0.4
dotnet add package Rystem.Queue --version 10.0.4
NuGet\Install-Package Rystem.Queue -Version 10.0.4
<PackageReference Include="Rystem.Queue" Version="10.0.4" />
<PackageVersion Include="Rystem.Queue" Version="10.0.4" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 10.0.4
#r "nuget: Rystem.Queue, 10.0.4"
#:package Rystem.Queue@10.0.4
#addin nuget:?package=Rystem.Queue&version=10.0.4
#tool nuget:?package=Rystem.Queue&version=10.0.4
Queue
You have to configure it in DI BackgroundJobCronFormat is the CRON for background job that checks if Maximum buffer is exceeded or has a retention expired, usually is lesser than or equal of MaximumRetentionCronFormat. MaximumRetentionCronFormat is the CRON for maximum time before to empty the queue and call the IQueueManager<T>. MaximumBuffer is the maximum queue length before to empty the queue and call the IQueueManager<T>.
services.AddMemoryQueue<Sample, SampleQueueManager>(x =>
{
x.MaximumBuffer = 1000;
x.MaximumRetentionCronFormat = "*/3 * * * * *";
x.BackgroundJobCronFormat = "*/1 * * * * *";
});
public class SampleQueueManager : IQueueManager<Sample>
{
public Task ManageAsync(IEnumerable<Sample> items)
{
return Task.CompletedTask;
}
}
For instance, in the example above you have a maximum queue length of 1000, a background job thatc checks every 1 second if there are 1000 or more items or maximum retention period of 3 seconds is expired. after the build you have to warm up
var app = builder.Build();
await app.Services.WarmUpAsync();
and inject to use it
var queue = _serviceProvider.GetService<IQueue<Sample>>()!;
for (int i = 0; i < 100; i++)
await queue.AddAsync(new Sample() { Id = i.ToString() });
In this example, after 1000 elements or 3 seconds the configured actions will be fired and the queue will be emptied.
Stack (Last In First Out)
services.AddMemoryStackQueue<Sample, SampleQueueManager>(x =>
{
x.MaximumBuffer = 1000;
x.MaximumRetentionCronFormat = "*/3 * * * * *";
x.BackgroundJobCronFormat = "*/1 * * * * *";
});
Custom integration
If you want to use a distributed queue like storage queue, or event hub or service bus or event grid, you can write your own integration and configure it.
services.AddQueueIntegration<Sample, SampleQueueManager, YourQueueIntegration>(x =>
{
x.MaximumBuffer = 1000;
x.MaximumRetentionCronFormat = "*/3 * * * * *";
x.BackgroundJobCronFormat = "*/1 * * * * *";
});
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | 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
- Rystem.BackgroundJob (>= 10.0.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.4 | 56 | 2/9/2026 |
| 10.0.3 | 35,565 | 1/28/2026 |
| 10.0.1 | 209,094 | 11/12/2025 |
| 9.1.3 | 254 | 9/2/2025 |
| 9.1.2 | 764,494 | 5/29/2025 |
| 9.1.1 | 97,800 | 5/2/2025 |
| 9.0.32 | 186,623 | 4/15/2025 |
| 9.0.31 | 5,785 | 4/2/2025 |
| 9.0.30 | 88,846 | 3/26/2025 |
| 9.0.29 | 9,030 | 3/18/2025 |
| 9.0.28 | 249 | 3/17/2025 |
| 9.0.27 | 249 | 3/16/2025 |
| 9.0.26 | 280 | 3/13/2025 |
| 9.0.25 | 52,118 | 3/9/2025 |
| 9.0.20 | 19,559 | 3/6/2025 |
| 9.0.19 | 304 | 3/6/2025 |
| 9.0.18 | 338 | 3/4/2025 |
| 9.0.17 | 209 | 3/1/2025 |
| 9.0.16 | 204 | 3/1/2025 |
| 9.0.15 | 75,545 | 2/22/2025 |