4 votes
Accepted

Microservice replica sync

First off, no your microservice shouldn't have a copy of another microservices data. Each microservice should only have its own data and make calls out to other apis if required. Although the design ...
  • 65.4k
2 votes

update state with the rest of properties or to have an action only to update the state?

Depends on what you want to achieve I guess. But, just think about how amazon would look like, if instead of a proper workflow, it would just give you a form to "update" all the properties ...
2 votes
Accepted

DDD can part of the domain be found in infrastructure?

First, I'm sorry to say, there's no such thing as "going by the book". Everything is up to interpretation, which in DDD's case has unfortunately a very wide deviation. Even Eric Evans seem ...
2 votes
Accepted

Is websocket connection a driving adapter or driven adapter in hexagonal architecture

There is no problem. It is okay that the web socket service is both driving and driven. Let's see an example. You have a web shop where backend and frontend communicate via web socket. When the user ...
  • 1,707
1 vote

Domain Driven design and representing process state

I would have an anaemic model approach with the possible actions in their own classes implementing : public interface IAction { bool IsValidFor(JobOffer j) void Apply(JobOffer j) } Apply will ...
  • 65.4k

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