← Back
Milan Jovanovic May 30, 2025 13m

My Complete CQRS and Domain Events Setup in .NET

Summary

The transcript discusses a custom mediator implementation for implementing CQRS (Command Query Responsibility Segregation) in software applications, focusing on improving domain event dispatching by reducing reliance on reflection. The key technique involves creating a concurrent dictionary to cache domain event handler types, which allows for more efficient type resolution and improved performance in handling domain events. The practical takeaway is that developers can optimize their event-driven architectures by minimizing runtime reflection and implementing a type-caching strategy that resolves handler types only once during application execution.

View original episode ↗