Skip to main content
Share Your Experience: Take the 2024 Developer Survey
9 votes

Unique Checks in Aggregates vs Database

My application allows for creation of an Item that is named by the user - and this name must be unique across all existing Items. Welcome to the world of set-validation. So two warnings before you ...
VoiceOfUnreason's user avatar
4 votes

Unique Checks in Aggregates vs Database

A Domain component and the Infrastructure component (DB) it relies on can be easily seen as completely separate from each other. It may, however, be helpful to consider the Infrastructure component to ...
desertech's user avatar
  • 151
3 votes
Accepted

Where to put getOrSave responsibility?

Putting this logic in a different class does not reduce the clutter. The clutter is simply moved to another part of your architecture. The truth is, I don't think there is a perfect place to put this ...
Greg Burghardt's user avatar
3 votes

What value does the mediator pattern add beyond dependency injection?

DI is unrelated to the mediator pattern Wikipedia's description of the Mediator pattern (especially, Problems that the mediator design pattern can solve) does not clearly distinguish a use case which ...
Flater's user avatar
  • 51.7k
3 votes

What value does the mediator pattern add beyond dependency injection?

I think your usage of "DI" is incorrect here. So I'm going to replace "DI" with "plain interface", because that is what I believe you are actually talking about. ...
Euphoric's user avatar
  • 37.5k
2 votes

CQRS: Multiple entry points for a single command

The first question: is there a problem with having only one command handler for these 3 adapters? Obviously, they will map each request/event into a common command and then dispatch it. Depends on ...
candied_orange's user avatar
1 vote
Accepted

How to model two bounded contexts with tight coupling between them

Q1: Should RecordsBC and CRMIntegrationBC be separate bounded contexts? I am not convinced that they represent different bounded contexts, but it it makes the architecture of your system easier, they ...
Bart van Ingen Schenau's user avatar
1 vote

DDD bounded contexts, shared tables

DDD Bounded Contexts has always been a somewhat vague idea. You can see that when you are speaking to "the business" about Domain Terms and the Domain Language you might get different parts ...
Ewan's user avatar
  • 76.4k

Only top scored, non community-wiki answers of a minimum length are eligible