Questions tagged [clean-architecture]
The Clean Architecture is a software architecture proposed by Robert C. Martin (better known as Uncle Bob). This architecture is similar to the Onion-Hexagonal-DCI-Architecture proposed by their respective authors. The base of this architecture is to follow and obey rules of the 'Dependency Rule'.
clean-architecture
1,239
questions
0
votes
0
answers
24
views
what layer should mass transit go in n-tier architecutre or clean architecture [closed]
hoping it's a simple question with a clear answer : what layer should mass transit be, one thing to note it's used as background service for now, that could be changed in the future who knows, the app ...
1
vote
0
answers
21
views
How to validate user access to premium features in a NestJS application following Clean Architecture principles?
I'm implementing a NestJS application following Clean Architecture principles. I want to validate if a user has access to a premium feature.
Here's my current architecture:
Controller (Application ...
0
votes
0
answers
16
views
Android Location Foreground Service Clean architecture
I am programming an application which tracks the users location in a foreground service and processes the location data further. Since I want to use a clean architecture (presentation, domain, data -...
-2
votes
0
answers
14
views
When is it necessary to implement a sorting algorithm in a API/backend application? [closed]
In our API/backend application, we primarily perform sorting at the database level. I am curious to know if there are any scenarios where we might need to implement a sorting algorithm within the ...
0
votes
0
answers
10
views
How should I separate UseCases based on the requirements?
So I'm trying to understand clean architecture principles.
One of the most confusing for me is the UseCase layer. I have read a lot of explanation about what is that, but I still can not decide how ...
0
votes
0
answers
12
views
Bloated dependencies in Application layer
In case of Clean/Onion Architecture what would be the best solution for services in Application layer with bloated dependencies? For example if I have service with dependencies that I don't use in ...
1
vote
0
answers
12
views
Related entity creation use case in clean architecture
I'm working on a project using Clean Architecture and an ORM. I have two entities: Entity A and Entity B. Entity A has a relationship with Entity B (e.g., Entity A contains an instance of Entity B).
...
0
votes
1
answer
45
views
How do we reference the dbContext from the Application layer in DDD for queries?
Here are the assumptions that I have gathered via extensive research:
"Domain models are separate to persistence entities."
"Repository Pattern's best use-case is on the command (write ...
-1
votes
0
answers
31
views
good practice for branching off of a project while still getting some of the new features built onto it
I have a project A, that does something very similar to project B. for example imagine project A does ticket listing for cinema, and now I want to branch off of it and create a separate project with ...
1
vote
2
answers
23
views
Clean architecture, render email content
I have a notifications subdomain where all emails and SMS notifications are handled / sent from the system, based on integration events from other parts of the system.
Each use case creates a ...
1
vote
1
answer
25
views
Handling Multiple Actors in a Use Case in Clean Architecture and DDD
I am doing an API for a blog site using Clean Architecture and DDD. I find myself doing a use case to get all comments for a requested article. The thing is that anonymous users can see the comments ...
2
votes
2
answers
62
views
Clean Architecture Dependency Graph (Multi module)
When it comes to the Clean Architecture Dependency graph I see two version:
The recommended one by Google: presentation -> domain -> data
The other: presentation -> domain <- data
What ...
0
votes
0
answers
19
views
How do we work with the business logic in DDD if we need to work with all users?
If we are working with a specific user and we need to know his position, for example, we can call the user entity and its getPosition() method.
What if we need to know if there is a single user with a ...
0
votes
2
answers
46
views
How to deal with large OnModelCreating function in Entity Framework?
We want to use a custom primary key constraint name of pk_users_id instead of generated by Entity Framework PK_Users by default. There is no attribute for this and we have to use fluent api. We have ...
0
votes
0
answers
20
views
Retrieving data from outside current subdomain in integration event handler
In our application, which among other things handles vehicle assessment orders, we want to separate all notifications (email/sms) sent from the system to a separate subdomain (clean architecture-ish). ...