Rystem.Queue
5.0.4
See the version list below for details.
dotnet add package Rystem.Queue --version 5.0.4
NuGet\Install-Package Rystem.Queue -Version 5.0.4
<PackageReference Include="Rystem.Queue" Version="5.0.4" />
<PackageVersion Include="Rystem.Queue" Version="5.0.4" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 5.0.4
#r "nuget: Rystem.Queue, 5.0.4"
#:package Rystem.Queue@5.0.4
#addin nuget:?package=Rystem.Queue&version=5.0.4
#tool nuget:?package=Rystem.Queue&version=5.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 | 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.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.3 | 0 | 1/28/2026 |
| 10.0.1 | 147,752 | 11/12/2025 |
| 9.1.3 | 244 | 9/2/2025 |
| 9.1.2 | 764,482 | 5/29/2025 |
| 9.1.1 | 97,792 | 5/2/2025 |
| 9.0.32 | 186,612 | 4/15/2025 |
| 9.0.31 | 5,775 | 4/2/2025 |
| 9.0.30 | 88,833 | 3/26/2025 |
| 9.0.29 | 9,017 | 3/18/2025 |
| 9.0.28 | 236 | 3/17/2025 |
| 9.0.27 | 239 | 3/16/2025 |
| 9.0.26 | 272 | 3/13/2025 |
| 9.0.25 | 52,109 | 3/9/2025 |
| 9.0.20 | 19,547 | 3/6/2025 |
| 9.0.19 | 295 | 3/6/2025 |
| 9.0.18 | 328 | 3/4/2025 |
| 9.0.17 | 199 | 3/1/2025 |
| 9.0.16 | 195 | 3/1/2025 |
| 9.0.15 | 75,536 | 2/22/2025 |
| 9.0.14 | 22,572 | 2/18/2025 |
| 9.0.13 | 215 | 2/9/2025 |
| 9.0.12 | 217,592 | 1/13/2025 |
| 9.0.11 | 24,060 | 1/9/2025 |
| 9.0.10 | 175 | 1/9/2025 |
| 9.0.9 | 4,054 | 1/7/2025 |
| 9.0.8 | 12,557 | 1/6/2025 |
| 9.0.7 | 213 | 1/6/2025 |
| 9.0.4 | 92,355 | 12/23/2024 |
| 9.0.3 | 212 | 12/22/2024 |
| 9.0.2 | 10,744 | 12/21/2024 |
| 9.0.1 | 1,236 | 12/21/2024 |
| 9.0.0 | 172,998 | 11/16/2024 |
| 9.0.0-rc.1 | 120 | 10/18/2024 |
| 6.2.0 | 220,539 | 10/10/2024 |
| 6.1.1 | 230 | 10/9/2024 |
| 6.1.0 | 47,939 | 9/29/2024 |
| 6.0.24 | 240 | 9/11/2024 |
| 6.0.23 | 242 | 7/18/2024 |
| 6.0.21 | 232 | 6/18/2024 |
| 6.0.20 | 237 | 6/16/2024 |
| 6.0.19 | 221 | 6/14/2024 |
| 6.0.18 | 211 | 6/14/2024 |
| 6.0.17 | 222 | 6/14/2024 |
| 6.0.16 | 209 | 6/10/2024 |
| 6.0.15 | 216 | 6/9/2024 |
| 6.0.14 | 234 | 5/24/2024 |
| 6.0.13 | 229 | 5/23/2024 |
| 6.0.12 | 205 | 5/23/2024 |
| 6.0.11 | 214 | 5/20/2024 |
| 6.0.9 | 225 | 5/20/2024 |
| 6.0.7 | 202 | 5/18/2024 |
| 6.0.6 | 245 | 5/10/2024 |
| 6.0.5 | 222 | 5/10/2024 |
| 6.0.4 | 214 | 4/3/2024 |
| 6.0.3 | 238 | 3/25/2024 |
| 6.0.2 | 3,752 | 3/11/2024 |
| 6.0.0 | 290 | 11/21/2023 |
| 6.0.0-rc.6 | 151 | 10/25/2023 |
| 6.0.0-rc.5 | 122 | 10/25/2023 |
| 6.0.0-rc.4 | 118 | 10/23/2023 |
| 6.0.0-rc.3 | 122 | 10/19/2023 |
| 6.0.0-rc.2 | 146 | 10/18/2023 |
| 6.0.0-rc.1 | 126 | 10/16/2023 |
| 5.0.20 | 255 | 9/25/2023 |
| 5.0.19 | 246 | 9/10/2023 |
| 5.0.18 | 226 | 9/6/2023 |
| 5.0.17 | 227 | 9/6/2023 |
| 5.0.16 | 227 | 9/5/2023 |
| 5.0.15 | 227 | 9/5/2023 |
| 5.0.14 | 235 | 9/5/2023 |
| 5.0.13 | 246 | 9/1/2023 |
| 5.0.12 | 221 | 8/31/2023 |
| 5.0.11 | 217 | 8/30/2023 |
| 5.0.10 | 254 | 8/29/2023 |
| 5.0.9 | 269 | 8/24/2023 |
| 5.0.8 | 237 | 8/24/2023 |
| 5.0.7 | 238 | 8/23/2023 |
| 5.0.6 | 241 | 8/21/2023 |
| 5.0.5 | 235 | 8/21/2023 |
| 5.0.4 | 241 | 8/16/2023 |
| 5.0.3 | 274 | 8/2/2023 |
| 5.0.2 | 258 | 8/2/2023 |
| 5.0.1 | 263 | 8/1/2023 |
| 5.0.0 | 261 | 7/31/2023 |
| 4.1.26 | 302 | 7/20/2023 |
| 4.1.25 | 266 | 7/16/2023 |
| 4.1.24 | 350 | 6/13/2023 |
| 4.1.23 | 278 | 6/13/2023 |
| 4.1.22 | 276 | 5/30/2023 |
| 4.1.21 | 275 | 5/20/2023 |
| 4.1.20 | 315,277 | 4/19/2023 |
| 4.1.19 | 95,013 | 3/20/2023 |
| 4.1.18 | 353 | 3/20/2023 |
| 4.1.17 | 333 | 3/17/2023 |
| 4.1.16 | 329 | 3/16/2023 |
| 4.1.15 | 356 | 3/15/2023 |
| 4.1.14 | 894 | 3/9/2023 |
| 4.1.13 | 344 | 3/7/2023 |
| 4.1.12 | 389 | 2/10/2023 |
| 4.1.11 | 440 | 1/26/2023 |
| 4.1.10 | 456 | 1/22/2023 |
| 4.1.9 | 451 | 1/20/2023 |
| 4.1.8 | 415 | 1/18/2023 |
| 4.1.7 | 439 | 1/18/2023 |
| 4.1.6 | 401 | 1/17/2023 |
| 4.1.1 | 435 | 1/4/2023 |
| 4.1.0 | 426 | 12/30/2022 |
| 3.0.25 | 440 | 12/21/2022 |
| 3.0.24 | 451 | 11/18/2022 |
| 3.0.23 | 463 | 11/18/2022 |
| 3.0.22 | 466 | 11/15/2022 |
| 3.0.21 | 468 | 11/14/2022 |
| 3.0.20 | 493 | 11/13/2022 |
| 3.0.19 | 499 | 11/2/2022 |
| 3.0.18 | 487 | 11/2/2022 |
| 3.0.17 | 508 | 10/29/2022 |
| 3.0.16 | 501 | 10/29/2022 |
| 3.0.15 | 512 | 10/29/2022 |
| 2.0.6 | 556 | 9/20/2022 |
| 2.0.5 | 542 | 9/20/2022 |
| 2.0.3 | 575 | 9/20/2022 |
| 2.0.1 | 629 | 9/13/2022 |
| 2.0.0 | 558 | 8/19/2022 |
| 1.1.22 | 600 | 7/30/2022 |
| 1.1.21 | 592 | 7/29/2022 |
| 1.1.20 | 558 | 7/29/2022 |
| 1.1.19 | 612 | 7/29/2022 |
| 1.1.18 | 621 | 7/27/2022 |
| 1.1.17 | 612 | 7/27/2022 |
| 1.1.15 | 575 | 7/25/2022 |
| 1.1.14 | 589 | 7/25/2022 |
| 1.1.13 | 580 | 7/22/2022 |
| 1.1.12 | 590 | 7/19/2022 |
| 1.1.11 | 597 | 7/19/2022 |
| 1.1.10 | 594 | 7/19/2022 |
| 1.1.9 | 594 | 7/19/2022 |
| 1.1.8 | 578 | 7/18/2022 |
| 1.1.7 | 611 | 7/18/2022 |
| 1.1.6 | 563 | 7/18/2022 |
| 1.0.4 | 591 | 7/17/2022 |
| 1.0.3 | 588 | 7/17/2022 |
| 1.0.2 | 618 | 7/12/2022 |
| 1.0.1 | 671 | 7/12/2022 |
| 1.0.0 | 607 | 7/8/2022 |
| 0.10.7 | 591 | 7/8/2022 |
| 0.9.11 | 583 | 7/1/2022 |
| 0.9.10 | 593 | 6/29/2022 |
| 0.9.9 | 592 | 6/29/2022 |