Nexum
Nexum
A modern CQRS library for .NET 10 / C# 14.
Compile-time safe, zero reflection, ValueTask throughout. A MediatR successor built for
observability and hot-path performance.
Why Nexum
ValueTask throughout
Every handler returns ValueTask<T>. Synchronous paths allocate zero bytes — no Task heap overhead on the hot path, no state machines for trivial handlers.
Hybrid runtime + generators
The Runtime dispatcher works standalone without any Source Generator. Add Nexum.SourceGenerators and you get compile-time discovery, monomorphized pipelines, and Roslyn interceptors — up to 34% faster.
OpenTelemetry built-in
Every dispatch creates an Activity with structured tags. Metrics, distributed tracing, and exemplars work out of the box through any OTel-compatible backend.
Core concepts
Benchmarks
About
Nexum is developed by Wizard-Software and hosted on GitHub at Wizard-Software/nexum. MIT licensed.