Rystem.Queue
10.0.6
dotnet add package Rystem.Queue --version 10.0.6
NuGet\Install-Package Rystem.Queue -Version 10.0.6
<PackageReference Include="Rystem.Queue" Version="10.0.6" />
<PackageVersion Include="Rystem.Queue" Version="10.0.6" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 10.0.6
#r "nuget: Rystem.Queue, 10.0.6"
#:package Rystem.Queue@10.0.6
#addin nuget:?package=Rystem.Queue&version=10.0.6
#tool nuget:?package=Rystem.Queue&version=10.0.6
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.6)
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.6 | 41 | 3/3/2026 |
| 10.0.5 | 113 | 2/22/2026 |
| 10.0.4 | 134 | 2/9/2026 |
| 10.0.3 | 147,862 | 1/28/2026 |
| 10.0.1 | 209,108 | 11/12/2025 |
| 9.1.3 | 273 | 9/2/2025 |
| 9.1.2 | 764,515 | 5/29/2025 |
| 9.1.1 | 97,816 | 5/2/2025 |
| 9.0.32 | 186,642 | 4/15/2025 |
| 9.0.31 | 5,806 | 4/2/2025 |
| 9.0.30 | 88,865 | 3/26/2025 |
| 9.0.29 | 9,049 | 3/18/2025 |
| 9.0.28 | 269 | 3/17/2025 |
| 9.0.27 | 271 | 3/16/2025 |
| 9.0.26 | 303 | 3/13/2025 |
| 9.0.25 | 52,141 | 3/9/2025 |
| 9.0.20 | 19,577 | 3/6/2025 |
| 9.0.19 | 325 | 3/6/2025 |
| 9.0.18 | 358 | 3/4/2025 |
| 9.0.17 | 228 | 3/1/2025 |