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?
Does we need keep Business Logic Layer when we use CQRS + MediatR in net core?
1.4k Views Asked by Mustafa At
1
There are 1 best solutions below
Related Questions in REPOSITORY-PATTERN
- Repository manager receives the wrong connection string in .net core
- Using Repository pattern to fetch data from different places and build list of objects
- repository design pattern identitydbcontext problem
- I am getting this error in identitydbcontext in repository model design
- Blazor page what is the best way to get data based on various filtered conditions from the server's controller?
- Conditionnal repositories in Golang
- How to use EF Core 8's ExecuteUpdate() and ExecuteDelete() in a generic repository while keeping its interface agnostig from EF Core
- Facing Issue on Mapping Parent Child Relation Table using Automapper in C#
- How to avoid "The instance of entity type 'xx' cannot be tracked" exception in ASP.NET Core & EF Core
- MediatR Pattern CleanArchitecture with ASP.NET Core Web API
- how to achieve model-specific type inference from prisma model without explicitly passing the index string to PrismaClient object?
- MVC pattern combined with Repository pattern in Laravel?
- Polymorphism & Clean Architecture
- how to create a repository in GitHub
- How to register every IRepository interfaces via Dependency Injection?
Related Questions in .NET-5
- Nuget Package works in console app but not in Web API app
- Debugging embedded Python code in .Net app using Pythonnet and Pdb
- Logger Not writing logs to the Log Files in .NET 5 Web API when deployed on IIS locally
- How to Enable Runtime Code Changes and Move Execution Pointer in Blazor WASM Client-Side Debugging with Mono/C#?
- Why won't .NET 5.0 website won't run from IIS?
- Invalid token error on reset password email in ASP.NET Core 5 Identity
- Is it safe to remove .NET 5 runtime if .NET 6 runtime is installed?
- System.TypeInitializationException - The type initializer for '<Module>' threw an exception
- .NET 5 Unable to unprotect the message.State when trying the sign-in callback
- Basic authentication ssl and NTLM NET 5 API
- Post request .Net 5.0
- .net5 => Could not load file or assembly System.Runtime, Version=6.0.0.0
- I can't use NonBodyParameter in .net 6
- can't use Swashbuckle.AspNetCore.Swagger library
- .NET 5 core api with Angular front end cors issues
Related Questions in CQRS
- Domain driven design CQRS with multiple aggregates and bounded context
- Where do I put business logic when implementing CQRS pattern using Mediatr in a .Net Clean Architecture application?
- Separating command from query in the spring boot CQRS projects(Multi module)
- Prevent duplicate records in ASP.NET Core app with CQRS architecture
- Service IValidator Array
- Transactionnal events with NestJS & CQRS
- What should be stored in materialized view when implementing event driven CQRS?
- Operations without writing to the DB In DDD
- What is the alternate solution for AddMediatR in the .NET Core Web API Program.CS file?
- Akka: currentEventsByPersistenceId always returns zero for 'eventEnvelope.timestamp'
- Does a command persist state itself, when we combine CQRS with Event Sourcing, or is it delegating to the EventBus?
- How to handle one to many relationship in CQRS/ES/Saga architecture?
- Communication between the writing model and the reading model in CQRS + DDD
- Issue with CQRS Implementation in NestJS with Mongoose
- How to specify which handler to route Mediator query/command?
Related Questions in N-TIER-ARCHITECTURE
- ModelState with entities relationship
- How did we use Localization in Abp.Theme project , while localization Sources in Domain.shared?
- Dependency Injection on an N-Tier solution - Remove Boilerplate
- Using SignalR and SqlDependency with Asp.Net Core 8.0 N-Tier Architecture
- How to solve the authentication issue?
- ASP.NET Core MVC (N Tiered Architecture) Insert Problem [SOLVED]
- Service Aggregator In N Tier Architecture Pattern
- Relation between tiers in architecture and distributed system?
- What problem of Layer Architecture really solve Onion Architecture?
- .NET Core multi-tier app: Where to store config json file and access it from different projects?
- Is there a naming convention for custom repository response objects?
- SaveChanges problem in N-Tier Architecture
- N-Tier Dependencies between Project in NET Core
- Transform MVC to layered Architecture in Spring Boot
- How to join two table with repository and service pattern
Related Questions in MEDIATOR
- How to bootstrap indirect relationships within a multilevel sem model?
- Beta coefficient of direct effect increases after controlling for mediator
- Single object not generating array in wso2
- NUnit, Im using mediator, how can a test my mediator Handler using NUnit
- Mediation and binary logistic regression - is this even possible with R?
- Passing Methods vs Generic Objects vs Event Specific Objects
- Log Messages in Wolverine Indicating Possible Problem about Failed Route Determination
- How do i fix a Mediatr Handler that has no errors?
- Can I ignore "Control" and "Treated" from the output of the mediation package if my predictor is continuous?
- Error constructing handler for request of type MediatR.IRequestHandler
- How to implement a dynamic router using ballerina?
- Mediation analysis with multiple mediators
- Registering Mediator source generator, Ambigious call between mediator Microsoft.Extensions.DependencyInjection
- ressource registry in file system [wso2 api manager 4.2.0]
- MassTransit: Domain vs Integration events
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
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.