LocalPost 0.2.0
See the version list below for details.
dotnet add package LocalPost --version 0.2.0
NuGet\Install-Package LocalPost -Version 0.2.0
<PackageReference Include="LocalPost" Version="0.2.0" />
<PackageVersion Include="LocalPost" Version="0.2.0" />
<PackageReference Include="LocalPost" />
paket add LocalPost --version 0.2.0
#r "nuget: LocalPost, 0.2.0"
#addin nuget:?package=LocalPost&version=0.2.0
#tool nuget:?package=LocalPost&version=0.2.0
LocalPost
Simple .NET in-memory background queue (System.Threading.Channels based).
Background tasks
There are multiple ways to run background tasks in .NET. The most common are:
Usage
Installation
For the core library:
dotnet add package LocalPost
AWS SQS, Kafka and other integrations are provided as separate packages, like:
dotnet add package LocalPost.SqsConsumer
dotnet add package LocalPost.KafkaConsumer
.NET 8 asynchronous background services handling
Before version 8 .NET runtime handled start/stop of the services only synchronously, but now it is possible to enable
concurrent handling of the services. This is done by setting HostOptions
property ConcurrentServiceExecution
to true
:
See for details:
- https://github.com/dotnet/runtime/blob/v8.0.0/src/libraries/Microsoft.Extensions.Hosting/src/Internal/Host.cs
- https://github.com/dotnet/runtime/blob/main/src/libraries/Microsoft.Extensions.Hosting/src/HostOptions.cs
Similar projects
- Coravel queue — a simple job queue
More complex jobs management / scheduling:
- Hangfire — background job scheduler. Supports advanced scheduling, persistence and jobs distribution across multiple workers.
Service bus (for bigger solutions):
Inspiration
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. 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 is compatible. 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. |
-
net6.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
- Polly.Core (>= 8.2.0)
- System.Collections.Immutable (>= 8.0.0)
- System.Diagnostics.DiagnosticSource (>= 8.0.0)
- System.Threading.Channels (>= 8.0.0)
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks (>= 8.0.0)
- Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
- Microsoft.Extensions.Options.ConfigurationExtensions (>= 8.0.0)
- Microsoft.Extensions.Options.DataAnnotations (>= 8.0.0)
- Polly.Core (>= 8.2.0)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on LocalPost:
Package | Downloads |
---|---|
LocalPost.SqsConsumer
Local (in-process) background queue for sending to Amazon SNS. |
|
LocalPost.SnsPublisher
Local (in-process) background queue for sending to Amazon SNS. |
|
LocalPost.KafkaConsumer
Opinionated Kafka consumer library, build to be simple, but yet flexible. |
GitHub repositories
This package is not used by any popular GitHub repositories.