Stack Explorer

MediatR

Utility

Simple Mediator pattern implementation for .NET

1M/week → Stable

Features

mediatorcqrsdecouplingclean-architecture

Pros and Cons

Ventajas

  • + Decouples handlers from controllers
  • + Facilitates CQRS pattern
  • + Extensible pipeline behaviors
  • + Notifications for events
  • + Improved testability

Desventajas

  • - Additional indirection
  • - Can be over-engineering
  • - Harder code navigation

Use Cases

  • Clean Architecture
  • CQRS with Commands and Queries
  • Pipeline validation
  • In-memory event-driven
  • Decoupled APIs

Tecnologías Relacionadas