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

New answers tagged

0 votes

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
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 votes

Software design with operation on time interval

Here’s what I would do: First have a method that calculates the charge. Since you pay a multiple of cents the result must be a whole number of cents. When you need to display that charge call this ...
gnasher729's user avatar
  • 45.7k
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
2 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
0 votes

DDD: accessing data from external service (REST, SOAP, etc.) as part of domain

It is pretty natural to have need for external dependencies, otherwise you wouldn't have kernel to manage your's app heap. But you don't need reference to kernel. This does not precisely answer you ...
Milan Jaric's user avatar
0 votes

CQRS: Multiple entry points for a single command

You need to untangle this and separate the steps more than you currently are. In order to make this make sense, let me pick at the threads: I’m facing the problem that each request has it’s own ...
Flater's user avatar
  • 51.7k
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
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
-1 votes

Avoid updating multiple Aggregates in Library Application

Note: this answer focuses specifically on "designing a system based on DDD principles" as you pointed out that this is your goal. I'm sidestepping ancillary considerations that DDD itself ...
Flater's user avatar
  • 51.7k
-1 votes

Avoid updating multiple Aggregates in Library Application

I wrote the question that Rik D, referenced a long time ago. I would put this as a comment but it's too long. There'a lot of yapping by other people on that question who just didn't know any better ...
nicholaswmin's user avatar
  • 1,883
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

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.3k

Top 50 recent answers are included