![]() How does this pattern relate to messaging? Since the handler implementations are so independent (loose coupling + high cohesion), it also scales very well in a growing code base with a high number of developers working in it. The mediator pattern or, in extension, CQRS are especially useful in event-driven systems or in systems where you want to create loosely coupled and independent islands of functionality. The handler is application logic - it is the direct consequence of your business requirement. Please note that the handler implementation will not use data store abstractions like IOrderService.
0 Comments
Leave a Reply. |