Distributed domain driven design deals with DDD in a distributed environment and how to integrate the different contexts.
Questions tagged [dddd]
45 questions
3
votes
1 answer
Do aggregates have to be strongly consistent?
Everything I have read on DDD implies that state within aggregates must be strongly consistent.
This implies that if one required redundancy, then only strongly-consistent replication can be used (such as 2PC, 3PC or Paxos).
Are you allowed to use…

Lawrence Wagerfield
- 6,471
- 5
- 42
- 84
2
votes
3 answers
Aggregate root references another aggregate root by ID, how to maintain integrity using RavenDB?
Say I have X as an aggregate root, and Y as another aggregate root.
Using a NoSql document database, X holds a reference to Y by Y's Id. If Y is deleted (independently outside of X's context), then X holds a reference to a Y that does not…

Ilan Y
- 107
- 9
2
votes
1 answer
CQRS, DDDD in an accounting domain
I'm wondering how to properly model my aggregates. The domain is accounting and I have three entities: Account, AccountingEntry (should this be a value object instead?) and AccountingTransaction. The account could be say, a customer's bank account.…

Tolu
- 1,081
- 1
- 8
- 23
1
vote
1 answer
How to ensure data consistency between two different aggregates in an event-driven architecture?
I will try to keep this as generic as possible using the “order” and “product” example, to try and help others that come across this question.
The Structure:
In the application we have 3 different services, 2 services that follow the event sourcing…

Chris
- 70
- 5
1
vote
1 answer
Domain Driven Design Calling Remote APIs
I am new to DDD and this is the first project for me to apply DDD and clean architecture,
I have implemented some code in the domain layer and in the application layer but currently, I have a confusion
now I have an API which is placeOrder
and to…

tarek salem
- 540
- 1
- 6
- 20
1
vote
1 answer
Distrubuted domain driven design modeling
I am working on an events ticketing system and I am trying to use DDD. However, I am unsure about how to model some of my aggregates.
I have the main Event aggregate:
public class Event : Entity, IAggregateRoot
{
public string Name { get;…

Konstantin Konstantinov
- 127
- 1
- 1
- 7
1
vote
3 answers
CQRS Commands as Models for POST actions
I'm getting started with CQRS, and thought It would make the most sense to use the Command object as the Model on my forms. I can take advantage of some of the client-side validation for the commands using DataAnnotations, client-side validation,…

Rod Johnson
- 2,387
- 6
- 30
- 48
1
vote
0 answers
Is there an interactive proactive tool to model any IT project in DDD (Domain driven design)?
Is there an interactive proactive tool to model any IT project in DDD?
I've seen eventmodeling.org, event storming, I've seen all the great techniques for live workshops (they use miro if not live), but they are still "manual" tools.
Is there any…

Fred Hors
- 3,258
- 3
- 25
- 71
1
vote
2 answers
Domain Driven Design: reference between entities of different aggregates
I'm trying to develop my first application using Domain Driven Design rules and patterns.
In my business scenario I have to manage the list of Customers and to track all the package that are sent to a specific customer destination.
So, following the…

Tommy
- 11
- 5
1
vote
1 answer
Intermediate compute call before domain creation in DDD(Domain Driven Design)
I have a UI that takes visitor orders. After the visitor placing his order, UI has a button that calculates tax and gets back to the UI before placing the actual order.
I have DDD based order API with ADD, UPDATE, GET, GET ALL and DELETE endpoints.…

user1951575
- 31
- 2
1
vote
1 answer
Query remote rest service from ddd aggregate
I've read about the Double Dispatch pattern, which enables to pass service interfaces into aggregate methods: https://lostechies.com/jimmybogard/2010/03/30/strengthening-your-domain-the-double-dispatch-pattern/,…

David Szalai
- 2,363
- 28
- 47
1
vote
2 answers
How to use pub/sub pattern in Event Sourcing & CQRS
I am developing micro-services, I am using Event Sourcing with CQRS pattern, in my case, If a user is deleted/ updated from one service I want it to publish an event and other service to subscribe it and delete the entries regarding that user from…

Ali Kahoot
- 3,371
- 2
- 22
- 27
1
vote
1 answer
How to update shared information between 2 representations of the same entity in different contexts?
This question is related, but more specific than this question.
I'm going to use a simple example here. Say we have a User entity in one context and a Customer entity in another context. These are 2 different representations of the same…

rgvcorley
- 2,883
- 4
- 22
- 41
0
votes
0 answers
how save ValueObject on Mongodb with c#?
public class PersianTitle : BaseValueObject
{
public string Value { get; protected set; }
protected PersianTitle()
{
}
public PersianTitle(string value)
{
if (value.Length > 30)
{
…

sajad khalili
- 1
- 3
0
votes
1 answer
Have to handle an aggregate Id not being present in an event sourced eventual consistent system
I am currently struggling in how to ensure that aggregates are eventually consistent in the case that an aggregate does not exist
Lets take I have a order service that deals with creating me an order of products and I have a product service that…

Chris
- 70
- 5