Questions tagged [architecture]
The high-level design and description of a software system. Architectural design distills away details of implementations, algorithms, and data representation to concentrate on the interaction of "black box" components.
3,602 questions
2votes
2answers
2kviews
Refactoring a legacy codebase with a god Repository and incomplete Clean Architecture
I'm currently working on a large legacy project that tried to implement Clean Architecture combined with MVVM, but unfortunately didn't fully adhere to the principles. One major problem: The ...
6votes
5answers
476views
Separate packages for mocks?
Say I have a package which handles sending emails over SMTP. Many of the apps I build use it. For unit testing purposes, I create a mock of the email service from that package which logs raw mail ...
1vote
2answers
158views
How does Object-Oriented Design fit into N-Layered Architecture?
Normally an N-Layered application is structured as follows. User Interface layer Business Logic Layer Data Access Layer DAL contains objects (data containers) representing business entities. The BLL ...
1vote
1answer
124views
How to map same name entities between domains in DDD?
I am working on the migration of a project from desktop to web. I am using VueJS 3 (composition API). Since this project has lots of modules, I thought about using DDD on the frontend for organization ...
4votes
4answers
257views
how can CQRS improve performence when we have to duplicate the writes
I was reading about CQRS, and from what I understand, it separates reading from writing by using two databases: one for queries (reading) and another for commands (writing). However, I don’t quite get ...
4votes
1answer
166views
Holding state in a service class in MVVM
In my SwiftUI app, I have a UpNextManager view model and a service class called UpNextService which contains many methods to read up next items from disk, write them to disk and much more. The service ...
3votes
1answer
214views
Passing info between different branches of a class hierarchy in C++?
So, I have a class hierarchy that looks like this: It is an embedded project, so the entire code will be run over and over. I have several algorithm classes, that compute some result given some inputs....
2votes
1answer
83views
How do you show a team boundary in C4 diagrams?
How do you show a team boundary (5 to 9 people building "a thing" as defined in Team Topologies) in a C4 diagram? Software System is built by few teams (e.g. 3 teams). Each team uses few ...
-1votes
1answer
158views
Designing a third-party web solution [closed]
I'm building a third-party solution for web applications, which consists of: A client-side library A web server library A third-party service I'm getting blocked on some architecture decisions, ...
1vote
2answers
191views
How to persist an entity corresponding to a polymorphic association table in Domain-Driven Design?
A polymorphic association table is a database design pattern that allows a single table to associate with multiple other tables, where the related tables can be of different types. Scenario: Multiple ...
0votes
1answer
78views
Where to put the application service interfaces in Domain Driven Design?
Let's say a project has an application layer and a domain layer. AFAIK services implemented in the application layer execute use cases. The methods defined in the services often contain ubiquitous ...
0votes
2answers
76views
Where to put notification templates in Domain Driven Design?
I have a project with four layers: Domain Application Infrastructure Presentation I have an email service interface in the Application layer. It takes an interface parameter called ...
1vote
3answers
177views
How to handle authorization in CQRS
In a CQRS architecture, at least as implemented by Vaughn Vernon in IDDD_Samples, the query services lives in the application layer. But then where and how should authorization be handled? For example,...
3votes
3answers
229views
Repository returning multiple aggregates
A common DDD wisdom I encounter online is that your repository should not return more than one aggregate type. But I came across this passage from Vaughn Vernon's book "Implementing Domain-Driven ...
0votes
2answers
179views
Is it reasonable to have one pub/sub channel/topic per post on a community platform?
As I understand it, a channel/topic in a pub/sub architecture is used to keep track of which subscribers to notify when an event occurs. E.g. If I comment on a post I can subscribe to the channel for ...