BusyBee 馃悵馃挩 Fast and observable background job processing for .NET BusyBee is a high-performance .NET background processing library built on native channels. It provides a simple, configurable, and observable solution for handling background tasks with built-in OpenTelemetry support and flexible queue management. Installation dotnet add package BusyBee Quick Start Register BusyBee in your DI container and start processing background jobs: // Program.cs builder . Services . AddBusyBee ( ) ; // Inject IBackgroundQueue and enqueue jobs await queue . Enqueue ( async ( services , context , cancellationToken ) => { var logger = services . GetRequiredService < ILogger < Program > > ( ) ; logger . LogInformation ( "Processing job {JobId}" , context . JobId ) ; await Task . Delay ( 1000 , cancellationToken ) ; } , cancellationToken ) ; Features 馃殌 High Performance In-memory queues built on .NET channels for efficiency 鈿欙笍 Highly Configurable Unbounded or bounded queues with multiple overflow strategies Configurable job timeouts both globally and per job Parallel job processing with configurable slots pool size 馃搳 Built-in Observability Job execution flow logging Tracing ready for OpenTelemetry Detailed OpenTelemetry ready metrics (jobs count, execution times, wait times, and more...) 馃敡 Developer Friendly Fluent configuration API Full dependency injection support Comprehensive cancellation token support Rich job context information Configuration Basic Configuration builder . Services . AddBusyBee ( ) . WithUnboundedQueue ( ) . WithGlobalJobTimeout ( TimeSpan . FromSeconds ( 30 ) ) . WithLevelOfParallelism ( 10 ) ; Queue Configuration Unbounded Queue - No capacity limits: builder . Services . AddBusyBee ( ) . WithUnboundedQueue ( ) ; Bounded Queue - With capacity and overflow handling: // Throw exception when queue is full builder . Services . AddBusyBee ( ) . WithBoundedQueue ( capacity : 1000 , OverflowStrategy . ThrowException ) ; // Drop oldest jobs when queue is full builder ...
First seen: 2025-08-20 09:11
Last seen: 2025-08-20 16:20