A walkthrough of building a custom in-memory event pipeline in .NET as an alternative to MediatR for event handling. The author explains the limitations of MediatR for complex event flows — such as lack of filtering, transformation, and chaining — and demonstrates a custom EventBus implementation that supports filter, transform, and handle operations without requiring marker interfaces. The solution integrates with dependency injection and can also be used standalone via a builder pattern, enabling composable event pipelines with less boilerplate.

5m read timeFrom event-driven.io
Post cover image