billseipel, 1 year ago Educate me: If you are already using MVC then why use the Mediator pattern? Both use 'routing'.... #designpatterns #mvc #dotnet #aspdotnet
Educate me:
If you are already using MVC then why use the Mediator pattern?
Both use 'routing'....
#designpatterns #mvc #dotnet #aspdotnet
khalidabuhakmeh, 1 year ago @billseipel I don't. I generally think in-memory mediators are unnecessary allocation and deck-chair shuffling. If we're talking about distributed messaging, that's another story. I also think the "it makes testing easier" crowd is wrong on this topic.
@billseipel I don't. I generally think in-memory mediators are unnecessary allocation and deck-chair shuffling.
If we're talking about distributed messaging, that's another story.
I also think the "it makes testing easier" crowd is wrong on this topic.
distantcam, 1 year ago @billseipel For testing it can be easier/nicer having a single handler to test rather than a whole controller.
@billseipel For testing it can be easier/nicer having a single handler to test rather than a whole controller.
distantcam, 1 year ago @billseipel I just thought of another reason. It makes everything look the same. Controllers call mediator handlers. Azure functions call mediator handlers and tests call mediator handlers. The pattern is easy to pick up on for new devs. Same code.
@billseipel I just thought of another reason. It makes everything look the same. Controllers call mediator handlers. Azure functions call mediator handlers and tests call mediator handlers. The pattern is easy to pick up on for new devs. Same code.
billseipel, 1 year ago @distantcam So.. controllers control applucation traffic to ...mediators and mediators handle business logic traffic?
@distantcam So.. controllers control applucation traffic to ...mediators and mediators handle business logic traffic?
TimPurdum, 1 year ago @billseipel @distantcam sound like minimal API...
@billseipel @distantcam sound like minimal API...
distantcam, 1 year ago @TimPurdum @billseipel azure functions has a minimal api?
@TimPurdum @billseipel azure functions has a minimal api?
Add comment