Rystem.Queue
10.0.3
dotnet add package Rystem.Queue --version 10.0.3
NuGet\Install-Package Rystem.Queue -Version 10.0.3
<PackageReference Include="Rystem.Queue" Version="10.0.3" />
<PackageVersion Include="Rystem.Queue" Version="10.0.3" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 10.0.3
#r "nuget: Rystem.Queue, 10.0.3"
#:package Rystem.Queue@10.0.3
#addin nuget:?package=Rystem.Queue&version=10.0.3
#tool nuget:?package=Rystem.Queue&version=10.0.3
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.3)
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.3 | 0 | 1/28/2026 |
| 10.0.1 | 150,698 | 11/12/2025 |
| 9.1.3 | 245 | 9/2/2025 |
| 9.1.2 | 764,483 | 5/29/2025 |
| 9.1.1 | 97,793 | 5/2/2025 |
| 9.0.32 | 186,613 | 4/15/2025 |
| 9.0.31 | 5,776 | 4/2/2025 |
| 9.0.30 | 88,834 | 3/26/2025 |
| 9.0.29 | 9,018 | 3/18/2025 |
| 9.0.28 | 237 | 3/17/2025 |
| 9.0.27 | 240 | 3/16/2025 |
| 9.0.26 | 273 | 3/13/2025 |
| 9.0.25 | 52,110 | 3/9/2025 |
| 9.0.20 | 19,549 | 3/6/2025 |
| 9.0.19 | 296 | 3/6/2025 |
| 9.0.18 | 329 | 3/4/2025 |
| 9.0.17 | 201 | 3/1/2025 |
| 9.0.16 | 196 | 3/1/2025 |
| 9.0.15 | 75,537 | 2/22/2025 |
| 9.0.14 | 22,574 | 2/18/2025 |
| 9.0.13 | 216 | 2/9/2025 |
| 9.0.12 | 217,595 | 1/13/2025 |
| 9.0.11 | 24,061 | 1/9/2025 |
| 9.0.10 | 176 | 1/9/2025 |
| 9.0.9 | 4,056 | 1/7/2025 |
| 9.0.8 | 12,559 | 1/6/2025 |
| 9.0.7 | 216 | 1/6/2025 |
| 9.0.4 | 92,356 | 12/23/2024 |
| 9.0.3 | 213 | 12/22/2024 |
| 9.0.2 | 10,746 | 12/21/2024 |
| 9.0.1 | 1,237 | 12/21/2024 |
| 9.0.0 | 172,999 | 11/16/2024 |
| 9.0.0-rc.1 | 120 | 10/18/2024 |
| 6.2.0 | 220,540 | 10/10/2024 |
| 6.1.1 | 231 | 10/9/2024 |
| 6.1.0 | 47,940 | 9/29/2024 |
| 6.0.24 | 242 | 9/11/2024 |
| 6.0.23 | 244 | 7/18/2024 |
| 6.0.21 | 234 | 6/18/2024 |
| 6.0.20 | 239 | 6/16/2024 |
| 6.0.19 | 223 | 6/14/2024 |
| 6.0.18 | 213 | 6/14/2024 |
| 6.0.17 | 224 | 6/14/2024 |
| 6.0.16 | 211 | 6/10/2024 |
| 6.0.15 | 218 | 6/9/2024 |
| 6.0.14 | 236 | 5/24/2024 |
| 6.0.13 | 231 | 5/23/2024 |
| 6.0.12 | 207 | 5/23/2024 |
| 6.0.11 | 216 | 5/20/2024 |
| 6.0.9 | 227 | 5/20/2024 |
| 6.0.7 | 204 | 5/18/2024 |
| 6.0.6 | 247 | 5/10/2024 |
| 6.0.5 | 224 | 5/10/2024 |
| 6.0.4 | 215 | 4/3/2024 |
| 6.0.3 | 240 | 3/25/2024 |
| 6.0.2 | 3,753 | 3/11/2024 |
| 6.0.0 | 291 | 11/21/2023 |
| 6.0.0-rc.6 | 152 | 10/25/2023 |
| 6.0.0-rc.5 | 123 | 10/25/2023 |
| 6.0.0-rc.4 | 119 | 10/23/2023 |
| 6.0.0-rc.3 | 123 | 10/19/2023 |
| 6.0.0-rc.2 | 147 | 10/18/2023 |
| 6.0.0-rc.1 | 127 | 10/16/2023 |
| 5.0.20 | 257 | 9/25/2023 |
| 5.0.19 | 248 | 9/10/2023 |
| 5.0.18 | 228 | 9/6/2023 |
| 5.0.17 | 229 | 9/6/2023 |
| 5.0.16 | 229 | 9/5/2023 |
| 5.0.15 | 229 | 9/5/2023 |
| 5.0.14 | 237 | 9/5/2023 |
| 5.0.13 | 248 | 9/1/2023 |
| 5.0.12 | 223 | 8/31/2023 |
| 5.0.11 | 219 | 8/30/2023 |
| 5.0.10 | 256 | 8/29/2023 |
| 5.0.9 | 271 | 8/24/2023 |
| 5.0.8 | 239 | 8/24/2023 |
| 5.0.7 | 240 | 8/23/2023 |
| 5.0.6 | 243 | 8/21/2023 |
| 5.0.5 | 236 | 8/21/2023 |
| 5.0.4 | 243 | 8/16/2023 |
| 5.0.3 | 276 | 8/2/2023 |
| 5.0.2 | 260 | 8/2/2023 |
| 5.0.1 | 265 | 8/1/2023 |
| 5.0.0 | 263 | 7/31/2023 |
| 4.1.26 | 304 | 7/20/2023 |
| 4.1.25 | 268 | 7/16/2023 |
| 4.1.24 | 352 | 6/13/2023 |
| 4.1.23 | 280 | 6/13/2023 |
| 4.1.22 | 278 | 5/30/2023 |
| 4.1.21 | 277 | 5/20/2023 |
| 4.1.20 | 315,279 | 4/19/2023 |
| 4.1.19 | 95,014 | 3/20/2023 |
| 4.1.18 | 355 | 3/20/2023 |
| 4.1.17 | 335 | 3/17/2023 |
| 4.1.16 | 331 | 3/16/2023 |
| 4.1.15 | 358 | 3/15/2023 |
| 4.1.14 | 896 | 3/9/2023 |
| 4.1.13 | 346 | 3/7/2023 |
| 4.1.12 | 391 | 2/10/2023 |
| 4.1.11 | 442 | 1/26/2023 |
| 4.1.10 | 458 | 1/22/2023 |
| 4.1.9 | 452 | 1/20/2023 |
| 4.1.8 | 417 | 1/18/2023 |
| 4.1.7 | 441 | 1/18/2023 |
| 4.1.6 | 403 | 1/17/2023 |
| 4.1.1 | 437 | 1/4/2023 |
| 4.1.0 | 428 | 12/30/2022 |
| 3.0.25 | 442 | 12/21/2022 |
| 3.0.24 | 453 | 11/18/2022 |
| 3.0.23 | 465 | 11/18/2022 |
| 3.0.22 | 468 | 11/15/2022 |
| 3.0.21 | 470 | 11/14/2022 |
| 3.0.20 | 495 | 11/13/2022 |
| 3.0.19 | 501 | 11/2/2022 |
| 3.0.18 | 489 | 11/2/2022 |
| 3.0.17 | 510 | 10/29/2022 |
| 3.0.16 | 503 | 10/29/2022 |
| 3.0.15 | 514 | 10/29/2022 |
| 2.0.6 | 559 | 9/20/2022 |
| 2.0.5 | 544 | 9/20/2022 |
| 2.0.3 | 577 | 9/20/2022 |
| 2.0.1 | 631 | 9/13/2022 |
| 2.0.0 | 560 | 8/19/2022 |
| 1.1.22 | 602 | 7/30/2022 |
| 1.1.21 | 594 | 7/29/2022 |
| 1.1.20 | 560 | 7/29/2022 |
| 1.1.19 | 614 | 7/29/2022 |
| 1.1.18 | 623 | 7/27/2022 |
| 1.1.17 | 614 | 7/27/2022 |
| 1.1.15 | 577 | 7/25/2022 |
| 1.1.14 | 591 | 7/25/2022 |
| 1.1.13 | 582 | 7/22/2022 |
| 1.1.12 | 592 | 7/19/2022 |
| 1.1.11 | 599 | 7/19/2022 |
| 1.1.10 | 596 | 7/19/2022 |
| 1.1.9 | 596 | 7/19/2022 |
| 1.1.8 | 580 | 7/18/2022 |
| 1.1.7 | 613 | 7/18/2022 |
| 1.1.6 | 565 | 7/18/2022 |
| 1.0.4 | 593 | 7/17/2022 |
| 1.0.3 | 590 | 7/17/2022 |
| 1.0.2 | 620 | 7/12/2022 |
| 1.0.1 | 673 | 7/12/2022 |
| 1.0.0 | 609 | 7/8/2022 |
| 0.10.7 | 593 | 7/8/2022 |
| 0.9.11 | 585 | 7/1/2022 |
| 0.9.10 | 595 | 6/29/2022 |
| 0.9.9 | 594 | 6/29/2022 |