domain-driven-design Questions
3
Solved
Do you think it might be reasonable to replace my service layer or service classes with MediatR? For example, my service classes look like this:
public interface IEntityService<TEntityDto> w...
Dishrag asked 13/6, 2018 at 10:29
3
Solved
I've got some really expensive business logic inside my domain layer where the data must be tracked in order to get a picture of what happened if something fails. Because of this, I want to declare...
Refulgent asked 23/6, 2014 at 6:53
4
Solved
I am trying to learn domain-driven design (DDD), and I think I got the basic idea. But there is something confusing me.
In DDD, are the persistence model and domain model different things? I mean,...
Hardeman asked 24/12, 2012 at 19:8
12
Danger ... Danger Dr. Smith... Philosophical post ahead
The purpose of this post is to determine if placing the validation logic outside of my domain entities (aggregate root actually) is actually...
Connotation asked 4/6, 2012 at 9:54
3
When you receive arguments in string format from the UI inside you controller, do you pass strings to application service (or to command) directly ?
Or, do you create value objects from the strin...
Belinda asked 16/3, 2015 at 14:28
2
Solved
I am working with a project following DDD and has consumers to a Kafka Queue. My question is straight forward, where do the consumers reside in the Onion Architecture and Hexagonal Architecture? Ar...
Lawsuit asked 30/4, 2020 at 13:30
7
Solved
I am learning the well-known Onion Architecture from Jeffrey Palermo.
Not specific to this pattern, but I cannot see clearly the separation between repositories and domain services.
I (mis)understa...
Provost asked 7/9, 2012 at 11:21
6
Solved
I like the middle-out development that is achieved with DDD. Development is driven by domain, the most solid part of application. We don't depend on infrastructure, persistence and presentation. Th...
Acyclic asked 22/8, 2011 at 13:11
14
Solved
What is the difference between Data Access Objects (DAO) and Repository patterns? I am developing an application using Enterprise Java Beans (EJB3), Hibernate ORM as infrastructure, and Domain-Driv...
Seanseana asked 18/12, 2011 at 6:5
4
Solved
When writing an application by standard for each table in the database I have the following properties: CreatedOn, CreatedBy, ModifiedOn, ModifiedBy, Archived.
But trying to follow DDD I'm questio...
Mallarme asked 28/5, 2013 at 14:48
3
Solved
I'm working on a Winforms project (.NET 4) that is based loosely on MVVM. For security, the application authenticates against Active Directory and then uses role based security to determine access ...
Karakoram asked 13/5, 2011 at 17:12
5
NOTE
I'm not asking if I should use the Repository pattern, I care about the How. Injecting persistence-related objects into domain classes is not an option for me: it makes Unit Testing impossible...
Geminian asked 22/11, 2020 at 17:6
6
Solved
I have debated this for a while now and still have not come to a conclusion.
While most examples I see have the factories code in the application layer I tend to think it should be in the domain la...
Westberry asked 10/12, 2012 at 16:16
4
Solved
Sorry if it's duplicated, I have searched a lot in SO, but I didn't find a matched question.
I know we shouldn't update multiple aggregate instances in one transaction. However, I think the "mult...
Graubert asked 8/2, 2017 at 2:35
4
Solved
I have been practicing DDD for a while now with the 4 distinct layers: Domain, Presentation, Application, and Infrastructure. Recently, I introduced a friend of mine to the DDD concept and he thoug...
Marielamariele asked 30/9, 2010 at 19:1
2
Solved
What are the differents between microservices and domain driven design?
Are they the same?
Microservices concept for my best understanding is to keep apart every service that mean build and deploy ...
Petulancy asked 25/12, 2021 at 10:33
5
Solved
In my project using DDD methodology.
The project has the aggregate(entity) Deal. This aggregate has many of use cases.
For this aggregate I need to create a rest api.
With standard: create and d...
Spiers asked 29/2, 2016 at 13:5
3
In a DDD-project I'm contributing to, we're seeking for some convenient solutions to map entity objects to domain objects and visa versa.
Developers of this project agreed to fully decouple domain...
Eliseoelish asked 1/5, 2020 at 11:3
2
Solved
I've implemented the following pattern by jbogard:
http://lostechies.com/jimmybogard/2014/05/13/a-better-domain-events-pattern/
Imagine the following entity Coupon and event CouponActivatedEvent:...
Wheen asked 31/10, 2014 at 15:4
2
Solved
I have the following DDD scenario, grouped into the following aggregates:
User,
Friends (User Associations),
File (for user uploading),
Galleries (grouping of files),
Messages (user communication)...
Bathyal asked 4/5, 2013 at 20:31
2
Solved
I'm exploring a new DDD project using SQLAlchemy and Alembic for the first time. I'd like to use imperative mapping to isolate my domain objects.
All the doc I can find about auto generating migrat...
Kalman asked 31/1, 2022 at 7:11
4
I am trying to implement event sourcing/CQRS/DDD for the first time, mostly for learning purposes, where there is the idea of an event store and a message queue such as Apache Kafka, and you have e...
Renell asked 24/6, 2019 at 1:44
1
There are several posts on stackoverflow about this question, but I'm still not able to understand it fully.
Different architectures like the layered architecture in the blue book, Ports and Adapte...
Bearer asked 13/5, 2022 at 14:4
5
Solved
I'm experimenting with Nestjs by trying to implement a clean-architecture structure and I'd like to validate my solution because I'm not sure I understand the best way to do it.
Please note that th...
Suspender asked 24/10, 2018 at 12:30
2
I have a project structure like this :
Here, IApplicationDbContext.cs interface defined in Application layer and it's implementation is done in Infrastructure layer. Similarly for Generic Reposito...
Laureate asked 25/4, 2022 at 8:5
© 2022 - 2024 — McMap. All rights reserved.