Reputation: 11
I use n-tier architecture in my net core applications and I want to apply cqrs + mediator patterns. But I have a question that our handlers should call business (service) layer or repository (data access) layer? Do I need to keep BLL or remove it?
Upvotes: 0
Views: 1717
Reputation: 19971
No, you don't need to keep the BLL or DAL layer when you move to a CQRS + MediatR based architecture.
I recommend that you look into vertical slices architecture combined with CQRS/MediatR. See these videos:
Think an important rule is that you should aim for is code that changes together should also be located together.
Upvotes: 2