AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Do You Really Need to Use Mediator?
As things get more complicated, mediator can definitely be useful. So for example, we had the sort of pipe line where the handler is responsible for e sort of creating the scope dependence injection scope. It creates a either transaction of sorts. And so you can do everything in your handler, and then it's only the mediator the sort of complete transaction. Then you can use that for things like and doing the outbox pattern and stuff as well. Weare pipe handled every request, like every request, even if it doesn't get reated to an on point,. The middle wear pipe plane could be useful place for it, but they typically the middle.