Rystem.Queue
9.0.31
See the version list below for details.
dotnet add package Rystem.Queue --version 9.0.31
NuGet\Install-Package Rystem.Queue -Version 9.0.31
<PackageReference Include="Rystem.Queue" Version="9.0.31" />
<PackageVersion Include="Rystem.Queue" Version="9.0.31" />
<PackageReference Include="Rystem.Queue" />
paket add Rystem.Queue --version 9.0.31
#r "nuget: Rystem.Queue, 9.0.31"
#:package Rystem.Queue@9.0.31
#addin nuget:?package=Rystem.Queue&version=9.0.31
#tool nuget:?package=Rystem.Queue&version=9.0.31
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 | net9.0 is compatible. 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. |
-
net9.0
- Rystem.BackgroundJob (>= 9.0.31)
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 |
---|---|---|
9.1.2 | 261,599 | 5/29/2025 |
9.1.1 | 97,710 | 5/2/2025 |
9.0.32 | 186,526 | 4/15/2025 |
9.0.31 | 5,698 | 4/2/2025 |
9.0.30 | 88,749 | 3/26/2025 |
9.0.29 | 8,925 | 3/18/2025 |
9.0.28 | 167 | 3/17/2025 |
9.0.27 | 169 | 3/16/2025 |
9.0.26 | 178 | 3/13/2025 |
9.0.25 | 52,022 | 3/9/2025 |
9.0.20 | 19,475 | 3/6/2025 |
9.0.19 | 226 | 3/6/2025 |
9.0.18 | 236 | 3/4/2025 |
9.0.17 | 116 | 3/1/2025 |
9.0.16 | 112 | 3/1/2025 |
9.0.15 | 75,454 | 2/22/2025 |
9.0.14 | 22,494 | 2/18/2025 |
9.0.13 | 136 | 2/9/2025 |
9.0.12 | 217,527 | 1/13/2025 |
9.0.11 | 23,977 | 1/9/2025 |
9.0.10 | 105 | 1/9/2025 |
9.0.9 | 3,978 | 1/7/2025 |
9.0.8 | 12,469 | 1/6/2025 |
9.0.7 | 123 | 1/6/2025 |
9.0.4 | 92,288 | 12/23/2024 |
9.0.3 | 135 | 12/22/2024 |
9.0.2 | 10,674 | 12/21/2024 |
9.0.1 | 1,156 | 12/21/2024 |
9.0.0 | 172,926 | 11/16/2024 |
9.0.0-rc.1 | 94 | 10/18/2024 |
6.2.0 | 220,052 | 10/10/2024 |
6.1.1 | 137 | 10/9/2024 |
6.1.0 | 47,862 | 9/29/2024 |
6.0.24 | 166 | 9/11/2024 |
6.0.23 | 160 | 7/18/2024 |
6.0.21 | 151 | 6/18/2024 |
6.0.20 | 157 | 6/16/2024 |
6.0.19 | 142 | 6/14/2024 |
6.0.18 | 133 | 6/14/2024 |
6.0.17 | 149 | 6/14/2024 |
6.0.16 | 137 | 6/10/2024 |
6.0.15 | 138 | 6/9/2024 |
6.0.14 | 161 | 5/24/2024 |
6.0.13 | 151 | 5/23/2024 |
6.0.12 | 141 | 5/23/2024 |
6.0.11 | 146 | 5/20/2024 |
6.0.9 | 143 | 5/20/2024 |
6.0.7 | 132 | 5/18/2024 |
6.0.6 | 155 | 5/10/2024 |
6.0.5 | 147 | 5/10/2024 |
6.0.4 | 149 | 4/3/2024 |
6.0.3 | 153 | 3/25/2024 |
6.0.2 | 3,675 | 3/11/2024 |
6.0.0 | 236 | 11/21/2023 |
6.0.0-rc.6 | 121 | 10/25/2023 |
6.0.0-rc.5 | 97 | 10/25/2023 |
6.0.0-rc.4 | 90 | 10/23/2023 |
6.0.0-rc.3 | 91 | 10/19/2023 |
6.0.0-rc.2 | 97 | 10/18/2023 |
6.0.0-rc.1 | 93 | 10/16/2023 |
5.0.20 | 187 | 9/25/2023 |
5.0.19 | 181 | 9/10/2023 |
5.0.18 | 170 | 9/6/2023 |
5.0.17 | 174 | 9/6/2023 |
5.0.16 | 167 | 9/5/2023 |
5.0.15 | 166 | 9/5/2023 |
5.0.14 | 168 | 9/5/2023 |
5.0.13 | 158 | 9/1/2023 |
5.0.12 | 163 | 8/31/2023 |
5.0.11 | 159 | 8/30/2023 |
5.0.10 | 192 | 8/29/2023 |
5.0.9 | 185 | 8/24/2023 |
5.0.8 | 173 | 8/24/2023 |
5.0.7 | 176 | 8/23/2023 |
5.0.6 | 177 | 8/21/2023 |
5.0.5 | 165 | 8/21/2023 |
5.0.4 | 185 | 8/16/2023 |
5.0.3 | 207 | 8/2/2023 |
5.0.2 | 189 | 8/2/2023 |
5.0.1 | 193 | 8/1/2023 |
5.0.0 | 207 | 7/31/2023 |
4.1.26 | 220 | 7/20/2023 |
4.1.25 | 210 | 7/16/2023 |
4.1.24 | 279 | 6/13/2023 |
4.1.23 | 196 | 6/13/2023 |
4.1.22 | 195 | 5/30/2023 |
4.1.21 | 191 | 5/20/2023 |
4.1.20 | 315,186 | 4/19/2023 |
4.1.19 | 94,926 | 3/20/2023 |
4.1.18 | 264 | 3/20/2023 |
4.1.17 | 239 | 3/17/2023 |
4.1.16 | 248 | 3/16/2023 |
4.1.15 | 249 | 3/15/2023 |
4.1.14 | 810 | 3/9/2023 |
4.1.13 | 260 | 3/7/2023 |
4.1.12 | 303 | 2/10/2023 |
4.1.11 | 331 | 1/26/2023 |
4.1.10 | 352 | 1/22/2023 |
4.1.9 | 350 | 1/20/2023 |
4.1.8 | 333 | 1/18/2023 |
4.1.7 | 331 | 1/18/2023 |
4.1.6 | 326 | 1/17/2023 |
4.1.1 | 352 | 1/4/2023 |
4.1.0 | 341 | 12/30/2022 |
3.0.25 | 355 | 12/21/2022 |
3.0.24 | 370 | 11/18/2022 |
3.0.23 | 377 | 11/18/2022 |
3.0.22 | 373 | 11/15/2022 |
3.0.21 | 365 | 11/14/2022 |
3.0.20 | 400 | 11/13/2022 |
3.0.19 | 417 | 11/2/2022 |
3.0.18 | 401 | 11/2/2022 |
3.0.17 | 421 | 10/29/2022 |
3.0.16 | 411 | 10/29/2022 |
3.0.15 | 435 | 10/29/2022 |
2.0.6 | 464 | 9/20/2022 |
2.0.5 | 448 | 9/20/2022 |
2.0.3 | 477 | 9/20/2022 |
2.0.1 | 537 | 9/13/2022 |
2.0.0 | 462 | 8/19/2022 |
1.1.22 | 516 | 7/30/2022 |
1.1.21 | 479 | 7/29/2022 |
1.1.20 | 466 | 7/29/2022 |
1.1.19 | 508 | 7/29/2022 |
1.1.18 | 504 | 7/27/2022 |
1.1.17 | 504 | 7/27/2022 |
1.1.15 | 490 | 7/25/2022 |
1.1.14 | 490 | 7/25/2022 |
1.1.13 | 481 | 7/22/2022 |
1.1.12 | 477 | 7/19/2022 |
1.1.11 | 498 | 7/19/2022 |
1.1.10 | 496 | 7/19/2022 |
1.1.9 | 511 | 7/19/2022 |
1.1.8 | 483 | 7/18/2022 |
1.1.7 | 511 | 7/18/2022 |
1.1.6 | 477 | 7/18/2022 |
1.0.4 | 494 | 7/17/2022 |
1.0.3 | 498 | 7/17/2022 |
1.0.2 | 498 | 7/12/2022 |
1.0.1 | 559 | 7/12/2022 |
1.0.0 | 509 | 7/8/2022 |
0.10.7 | 507 | 7/8/2022 |
0.9.11 | 483 | 7/1/2022 |
0.9.10 | 486 | 6/29/2022 |
0.9.9 | 497 | 6/29/2022 |