Repository navigation
Releases
v0.7.2
v0.7.1
v0.7.0
v0.7.0-rc.1
Bug Fixes
Documentation
Features
-
Add public WithKeyedDispatch and keyed autoscaling (#169) (beaccdd)
-
Record terminal outcomes in fixed orchestrator slots (#170) (9e48d0b)
-
Sweep abandoned work and expose keyed backlog counts (#171) (831641e)
-
Record processing and backlog metrics automatically (#172) (17dafed)
-
Add WithHandlerResilience with one retry owner (#173) (1b0150e)
Refactoring
Ci
v0.6.2
Bifrost 0.6.2 publishes all bug fixes, correctness improvements, tests, performance evidence, docs, and CI updates landed since v0.6.0 (the unpublished v0.6.1 tag was superseded by v0.6.2 after migrating NuGet publishing to OIDC Trusted Publishing).
Bug Fixes
- Retire autoscaled workers without canceling active work (#87) (cffdb47)
- Isolate observer failures from work processing (#90) (d8e718b)
- Preserve cancellation and validate library boundaries (#91) (59f1b76)
- Preserve saved schedules during hosted recovery (#92) (58fe086)
- Keep priority and cadence arithmetic within range (#93) (96fa333)
- Close residual correctness findings from issue 96 (#99) (25f3e34)
- Enforce registration identity and atomic command paths (#103) (648b4d2)
- Track explicit tick liveness states in health monitor (#104) (63dd5f8)
- Serialize event drain and await rejection routes (#105) (fc36731)
- Make worker idle-stop and cooldown state atomic (#106) (b4864c4)
Documentation
Performance
Testing
- Add invariant histories and fix exposed lifecycle races (#84) (65ae685)
- Retain comparer recovery and hosted teardown regressions (#88) (46b9275)
- Qualify library failure boundaries and record evidence (#94) (9d3f4ed)
- Pilot Exarchos testgen on priority key invariant (#102) (d3d8492)
CI
- Run project automation on GitHub-hosted runners (#95) (e3147e6)
- Bump setup-dotnet, upload-artifact, add-to-project, and git-cliff (#97) (c87d399)
- Use the org PR template and pr-body check (#75) (9aa49f0)
- Pin label-sync to org workflows v1.12 (#98) (3e4044b)
- Migrate NuGet publishing to OIDC trusted publishing (#108) (3cbc7b9)
v0.6.1
Bug Fixes
-
Retire autoscaled workers without canceling active work (#87) (cffdb47)
-
Isolate observer failures from work processing (#90) (d8e718b)
-
Preserve cancellation and validate library boundaries (#91) (59f1b76)
-
Preserve saved schedules during hosted recovery (#92) (58fe086)
-
Keep priority and cadence arithmetic within range (#93) (96fa333)
-
Close residual correctness findings from issue 96 (#99) (25f3e34)
-
enforce registration identity and atomic command paths (#103) (648b4d2)
-
track explicit tick liveness states in health monitor (#104) (63dd5f8)
-
serialize event drain and await rejection routes (#105) (fc36731)
-
make worker idle-stop and cooldown state atomic (#106) (b4864c4)
Documentation
Performance
Testing
-
Add invariant histories and fix exposed lifecycle races (#84) (65ae685)
-
Retain comparer recovery and hosted teardown regressions (#88) (46b9275)
-
Qualify library failure boundaries and record evidence (#94) (9d3f4ed)
-
Pilot Exarchos testgen on priority key invariant (#102) (d3d8492)
Ci
v0.6.0 — priority API revision and comparer-safe MultiQueue
Bifrost 0.6.0 revises priority dispatch, admission, and shutdown APIs, and strengthens MultiQueue behavior when a custom comparer throws. This is a breaking release; recompile consumers and follow the priority API migration guide.
Breaking changes
- Select
DispatchStrategy.Fifo,PriorityExact, orPriorityRelaxedexplicitly.PriorityBinding,Auto, and thePrioritysentinel are removed.UsePriorityDispatchnow requires an ordering and selects immediate rejection; producer waiting is supported only by FIFO. - Use
IWorkWriter<TWork>for admission,Enqueuefor an immediateEnqueueResult, andWorkEnqueueOptionsfor class and correlation metadata.RunandTryRunare removed. An explicitWorkClass.Defaultnow overrides the configured classifier. - Construct tuned standalone queues through
ConcurrentPriorityQueue.Create(options). ReplaceTryPeekwithTryPeekBestObservedandTryDequeueMinwithTryDequeueBestObserved. The publicLockingPriorityQueueis removed; exact orchestrator dispatch remains available. - Use named work/dead-letter options and autoscaling services keyed by work type. Register autoscaling hosting and health checks for each work type.
- Use
Complete/Completion,DrainAsync, andAbortAsyncfor lifecycle control.AbortAsyncreplacesStopAsync; disposal waits for actual worker termination before releasing resources.
Fixes and improvements
- Preserve resident queue contents, published state, and capacity reservations when an arbitrary custom comparer throws.
- Keep admission rejection reasons and correlation metadata consistent through decorators, and isolate options and autoscaling state between work types.
- Add benchmark reproduction tooling, validation evidence, and clearer API and operational documentation. Performance remains workload-dependent; see the benchmark runbook and linked reports for measurements and limits.
- Update SourceLink and GitHub Actions dependencies, and adopt the organization CI lane planner.
v0.5.1 — explicit Locking opt-in (#46) + scheduler post-MVP follow-ups (#32)
Added
ISchedulerBuilder.ConfigureOptions(Action<SchedulerOptions>)(#32) — first-class configuration of the scheduler's tick-loop options atAddScheduler(e.g.services.AddScheduler(b => b.ConfigureOptions(o => o.RestartBackoff = TimeSpan.FromSeconds(2)))). The fault-recovery cross-field constraint (RestartBackoff × MaxRestartsInWindow < RestartWindow) is validated and fails fast with an actionable message on a bad combination.SchedulerOptions.RestartBackoff(#32) — the tick loop now backs off (default 1s) between repeated fault restarts within the restart window, so a crash loop no longer spins a core. A single transient fault still restarts immediately, and the give-up transition (MaxRestartsInWindowwithinRestartWindow) is unaffected.ScheduleRegistryimplementsIAsyncDisposableandIDisposable(#32) — disposing it completes the command-channel writer so the tick loop drains its backlog and stops cleanly instead of blocking on a never-completed channel.
Changed
PriorityBinding.Autonever selects the locking dispatcher (#46) —Auto(the default priority binding) now always resolves to the lock-freeMultiQueue. The previous capacity/rank-error heuristic that could silently switchAutoto the coarse global-locking heap at high capacity is removed;Lockingis reachable only via an explicitPriorityBinding.Locking. No public API change — behavior only. ChooseLockingexplicitly when you need strict min-key ordering at high capacity, where the relaxedMultiQueue's rank accuracy decreases.
Fixed
- Scheduler post-MVP follow-ups (#32) — the tick loop stops cleanly when its registry's command channel completes (no CPU spin on dispose-while-running); fault-restart backoff prevents crash-loop spin; deferred test-hygiene fixes (deterministic event-stream disposal, guarded hosted-service startup, thread-pool-floor failure check, loop teardown in
finally, fixture nullability). In-flight double-decrement isolation and scope-fault event observability were confirmed already-correct and locked in with regression tests.UpdateAsyncis now documented in the durable-scheduling design.
Full changelog: https://github.com/lvlup-sw/bifrost/blob/v0.5.1/CHANGELOG.md
v0.5.0
First release with the relaxed concurrent priority queue and opt-in priority dispatch. Full notes in CHANGELOG.md.
Breaking
Admission outcomes move into the type system — the compiler finds every call site:
EnqueueAsyncreturnsValueTask<EnqueueResult>and gains an optionalWorkClass. Capacity, watermark, and shutdown surface as a rejected result; admission failures never throw. Caller-token cancellation still throwsOperationCanceledExceptionand is never dead-lettered.Writerescape hatch removed — the internal queue is a pluggable dispatch-strategy binding, not necessarily aChannel.- Priority strategies enqueue fail-fast — at capacity/above watermark they reject immediately rather than producer-wait. Admission rejections route to the DLQ when one is configured.
Added
LevelUp.Bifrost.Concurrency— the MultiQueueConcurrentPriorityQueue(relaxed, lock-striped) and exact-orderingLockingPriorityQueue.- Priority dispatch (opt-in) —
WorkClasstags, dispatch strategies behindIWorkQueue<T>, andPriorityBindingwith a hardware×capacity-awareAutodefault. Strict FIFO remains the default. - Virtual-time priority key + class-aware watermark admission with a bounded starvation window.
- Queue-wait / rejection observability, plus soak + benchmark suites.
- Durable scheduling (
LevelUp.Bifrost.Scheduling+.Core+.Testing) — cron/interval cadences (Cronos), a virtual-time tick engine, per-fire DI scopes, missed-fire policies, a health check, and a deterministic test harness.
Migration from 0.4.x
// before
await orchestrator.EnqueueAsync(work);
// after
var result = await orchestrator.EnqueueAsync(work);
if (!result.IsAccepted) { /* result.Reason */ }A positional token (EnqueueAsync(work, ct)) no longer compiles — the second parameter is now WorkClass; pass ct: by name.
v0.4.0 — API Surface Improvements
What's New
Handler Registration API
WithHandler<TWork, THandler>()with type-based, factory, and delegate overloads for flexible handler registration
Scoped Handler Support
ScopedHandlerProxyfor per-item DI scope isolation (EF Core DbContext, etc.)
DLQ Extensibility
IDeadLetterSubscriber<TWork>,WithDeadLetterSubscriber(), and multi-subscriber notifier
EventStream + DLQ Wiring
- Dead-lettered items automatically publish to the event stream
DrainAsync
- Graceful drain support for zero-downtime deployments
Handler Decorator Extensibility
WithHandlerDecorator()for custom cross-cutting concerns
Improvements
DeadLetterNotifiernow logs subscriber errors instead of silently swallowingEventStreamOrchestratoris drain-safe for late subscribers- Comprehensive XML documentation for resilience/DLQ interaction model
Stats
38 files changed, 609 tests, 92.91% coverage
Full Changelog: v0.3.5...v0.4.0