Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey

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
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 ...
thou_mayest's user avatar
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 ...
SWAPNIL KUWAR's user avatar
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 -...
simpleApps's user avatar
-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 ...
Ian's user avatar
  • 1
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 ...
Andreas1234's user avatar
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 ...
Aka's user avatar
  • 55
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). ...
isaac's user avatar
  • 11
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 ...
Tristan Charles Boniface's user avatar
-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 ...
mpower's user avatar
  • 203
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 ...
Tor's user avatar
  • 21
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 ...
Dany Nuñez's user avatar
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 ...
No_Name's user avatar
  • 56
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 ...
Igor Bezlepkin's user avatar
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 ...
Daniel's user avatar
  • 1,531
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). ...
Tor's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
83