Skip to content

alexeyshockov/LocalPost.NET

Repository files navigation

LocalPost

NuGet package Code coverage

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:

Similar projects

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