← Back
Milan Jovanovic May 16, 2025 15m

Building Your Own CQRS Pipeline With Decorators (Dropped MediatR!)

Summary

The transcript discusses implementing a middleware pattern as an alternative to Mediator's pipeline behavior for handling crosscutting concerns in a CQRS application. The speaker demonstrates using a decorator or proxy pattern to create pipeline behaviors, specifically showing how to implement a logging decorator that can intercept and log around request handlers. The practical takeaway is that developers can create custom middleware solutions that allow for adding logging, validation, or other cross-cutting logic to their application's request handling pipeline without modifying the core handler implementations.

View original episode ↗