Rystem.Queue
5.0.19
See the version list below for details.
dotnet add package Rystem.Queue --version 5.0.19
NuGet\Install-Package Rystem.Queue -Version 5.0.19
<PackageReference Include="Rystem.Queue" Version="5.0.19" />
<PackageVersion Include="Rystem.Queue" Version="5.0.19" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 5.0.19
#r "nuget: Rystem.Queue, 5.0.19"
#:package Rystem.Queue@5.0.19
#addin nuget:?package=Rystem.Queue&version=5.0.19
#tool nuget:?package=Rystem.Queue&version=5.0.19
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 | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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 was computed. 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 was computed. 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. |
-
net7.0
- Rystem.BackgroundJob (>= 5.0.19)
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.1 | 28 | 11/12/2025 |
| 9.1.3 | 207 | 9/2/2025 |
| 9.1.2 | 757,457 | 5/29/2025 |
| 9.1.1 | 97,756 | 5/2/2025 |
| 9.0.32 | 186,573 | 4/15/2025 |
| 9.0.31 | 5,745 | 4/2/2025 |
| 9.0.30 | 88,795 | 3/26/2025 |
| 9.0.29 | 8,971 | 3/18/2025 |
| 9.0.28 | 202 | 3/17/2025 |
| 9.0.27 | 206 | 3/16/2025 |
| 9.0.26 | 235 | 3/13/2025 |
| 9.0.25 | 52,069 | 3/9/2025 |
| 9.0.20 | 19,510 | 3/6/2025 |
| 9.0.19 | 258 | 3/6/2025 |
| 9.0.18 | 292 | 3/4/2025 |
| 9.0.17 | 162 | 3/1/2025 |
| 9.0.16 | 159 | 3/1/2025 |
| 9.0.15 | 75,497 | 2/22/2025 |
| 9.0.14 | 22,538 | 2/18/2025 |
| 9.0.13 | 179 | 2/9/2025 |
| 9.0.12 | 217,561 | 1/13/2025 |
| 9.0.11 | 24,019 | 1/9/2025 |
| 9.0.10 | 139 | 1/9/2025 |
| 9.0.9 | 4,013 | 1/7/2025 |
| 9.0.8 | 12,517 | 1/6/2025 |
| 9.0.7 | 174 | 1/6/2025 |
| 9.0.4 | 92,321 | 12/23/2024 |
| 9.0.3 | 181 | 12/22/2024 |
| 9.0.2 | 10,709 | 12/21/2024 |
| 9.0.1 | 1,201 | 12/21/2024 |
| 9.0.0 | 172,959 | 11/16/2024 |
| 9.0.0-rc.1 | 103 | 10/18/2024 |
| 6.2.0 | 220,432 | 10/10/2024 |
| 6.1.1 | 198 | 10/9/2024 |
| 6.1.0 | 47,907 | 9/29/2024 |
| 6.0.24 | 210 | 9/11/2024 |
| 6.0.23 | 204 | 7/18/2024 |
| 6.0.21 | 196 | 6/18/2024 |
| 6.0.20 | 200 | 6/16/2024 |
| 6.0.19 | 185 | 6/14/2024 |
| 6.0.18 | 176 | 6/14/2024 |
| 6.0.17 | 186 | 6/14/2024 |
| 6.0.16 | 170 | 6/10/2024 |
| 6.0.15 | 183 | 6/9/2024 |
| 6.0.14 | 204 | 5/24/2024 |
| 6.0.13 | 196 | 5/23/2024 |
| 6.0.12 | 174 | 5/23/2024 |
| 6.0.11 | 179 | 5/20/2024 |
| 6.0.9 | 187 | 5/20/2024 |
| 6.0.7 | 166 | 5/18/2024 |
| 6.0.6 | 209 | 5/10/2024 |
| 6.0.5 | 190 | 5/10/2024 |
| 6.0.4 | 181 | 4/3/2024 |
| 6.0.3 | 196 | 3/25/2024 |
| 6.0.2 | 3,720 | 3/11/2024 |
| 6.0.0 | 266 | 11/21/2023 |
| 6.0.0-rc.6 | 131 | 10/25/2023 |
| 6.0.0-rc.5 | 107 | 10/25/2023 |
| 6.0.0-rc.4 | 100 | 10/23/2023 |
| 6.0.0-rc.3 | 103 | 10/19/2023 |
| 6.0.0-rc.2 | 122 | 10/18/2023 |
| 6.0.0-rc.1 | 103 | 10/16/2023 |
| 5.0.20 | 230 | 9/25/2023 |
| 5.0.19 | 224 | 9/10/2023 |
| 5.0.18 | 211 | 9/6/2023 |
| 5.0.17 | 205 | 9/6/2023 |
| 5.0.16 | 207 | 9/5/2023 |
| 5.0.15 | 209 | 9/5/2023 |
| 5.0.14 | 209 | 9/5/2023 |
| 5.0.13 | 218 | 9/1/2023 |
| 5.0.12 | 200 | 8/31/2023 |
| 5.0.11 | 199 | 8/30/2023 |
| 5.0.10 | 231 | 8/29/2023 |
| 5.0.9 | 246 | 8/24/2023 |
| 5.0.8 | 216 | 8/24/2023 |
| 5.0.7 | 217 | 8/23/2023 |
| 5.0.6 | 220 | 8/21/2023 |
| 5.0.5 | 207 | 8/21/2023 |
| 5.0.4 | 218 | 8/16/2023 |
| 5.0.3 | 252 | 8/2/2023 |
| 5.0.2 | 232 | 8/2/2023 |
| 5.0.1 | 238 | 8/1/2023 |
| 5.0.0 | 239 | 7/31/2023 |
| 4.1.26 | 269 | 7/20/2023 |
| 4.1.25 | 243 | 7/16/2023 |
| 4.1.24 | 320 | 6/13/2023 |
| 4.1.23 | 251 | 6/13/2023 |
| 4.1.22 | 246 | 5/30/2023 |
| 4.1.21 | 245 | 5/20/2023 |
| 4.1.20 | 315,246 | 4/19/2023 |
| 4.1.19 | 94,981 | 3/20/2023 |
| 4.1.18 | 323 | 3/20/2023 |
| 4.1.17 | 296 | 3/17/2023 |
| 4.1.16 | 302 | 3/16/2023 |
| 4.1.15 | 319 | 3/15/2023 |
| 4.1.14 | 870 | 3/9/2023 |
| 4.1.13 | 319 | 3/7/2023 |
| 4.1.12 | 360 | 2/10/2023 |
| 4.1.11 | 401 | 1/26/2023 |
| 4.1.10 | 425 | 1/22/2023 |
| 4.1.9 | 421 | 1/20/2023 |
| 4.1.8 | 391 | 1/18/2023 |
| 4.1.7 | 411 | 1/18/2023 |
| 4.1.6 | 372 | 1/17/2023 |
| 4.1.1 | 408 | 1/4/2023 |
| 4.1.0 | 397 | 12/30/2022 |
| 3.0.25 | 413 | 12/21/2022 |
| 3.0.24 | 425 | 11/18/2022 |
| 3.0.23 | 434 | 11/18/2022 |
| 3.0.22 | 428 | 11/15/2022 |
| 3.0.21 | 437 | 11/14/2022 |
| 3.0.20 | 462 | 11/13/2022 |
| 3.0.19 | 477 | 11/2/2022 |
| 3.0.18 | 458 | 11/2/2022 |
| 3.0.17 | 480 | 10/29/2022 |
| 3.0.16 | 470 | 10/29/2022 |
| 3.0.15 | 482 | 10/29/2022 |
| 2.0.6 | 525 | 9/20/2022 |
| 2.0.5 | 508 | 9/20/2022 |
| 2.0.3 | 538 | 9/20/2022 |
| 2.0.1 | 601 | 9/13/2022 |
| 2.0.0 | 528 | 8/19/2022 |
| 1.1.22 | 566 | 7/30/2022 |
| 1.1.21 | 560 | 7/29/2022 |
| 1.1.20 | 527 | 7/29/2022 |
| 1.1.19 | 579 | 7/29/2022 |
| 1.1.18 | 584 | 7/27/2022 |
| 1.1.17 | 579 | 7/27/2022 |
| 1.1.15 | 542 | 7/25/2022 |
| 1.1.14 | 554 | 7/25/2022 |
| 1.1.13 | 544 | 7/22/2022 |
| 1.1.12 | 554 | 7/19/2022 |
| 1.1.11 | 563 | 7/19/2022 |
| 1.1.10 | 562 | 7/19/2022 |
| 1.1.9 | 564 | 7/19/2022 |
| 1.1.8 | 545 | 7/18/2022 |
| 1.1.7 | 575 | 7/18/2022 |
| 1.1.6 | 529 | 7/18/2022 |
| 1.0.4 | 554 | 7/17/2022 |
| 1.0.3 | 552 | 7/17/2022 |
| 1.0.2 | 580 | 7/12/2022 |
| 1.0.1 | 640 | 7/12/2022 |
| 1.0.0 | 576 | 7/8/2022 |
| 0.10.7 | 558 | 7/8/2022 |
| 0.9.11 | 545 | 7/1/2022 |
| 0.9.10 | 554 | 6/29/2022 |
| 0.9.9 | 562 | 6/29/2022 |