MediatR .NET's swiss army

Sun, Mar 21, 2021 One-minute read

All that MediatR can do for the development lifecycle

Motivation

For the past 6 years I have been using Jimmy Bogard’s MediatR on every new project I was tasked on. I have pushed it’s use in different companies, always with the same questions and results:

  • Why a new library?
  • What value does it add?
  • What are the performance implications?
  • But is just a command dispatcher, why bringing a new library if we have our own?

Short answers:

1- Why not? Let’s explore and see if it is a good fit.

2- Thoroughly tested library and widely used library, with more than a command dispatcher implementation.

3- Not a lot to be honest, check this benchmark and after reading the whole series consider if those 2ms every 100 are really that important.

4- The answer to this in the series beginning at Series 1