aggregateroot Questions

4

Solved

I have setup a domain project which is being populated with an ORM. The domain contains of different aggregates each with its own root object. My question is how properties that cross the aggregate...
Bivins asked 12/9, 2013 at 9:52

3

Solved

Basically, an user wants to change its profile picture. The web server receives a posted image against /user/35435/profile/picture, so the data needs to be saved, and the LastModification property ...
Herbartian asked 5/6, 2018 at 14:29

4

I will use Airbnb as an example. When you sign up an Airbnb account, you can become a host by creating a listing. To create a listing, Airbnb UI guides you through the process of creating a new lis...
Chalkboard asked 8/2, 2021 at 9:12

3

Solved

I have read this and it makes me think twice...: "Avoid unit of work pattern. Aggregate roots should define transaction boundaries." Why should someone avoid the UOW pattern applying domain drive...
Sluggish asked 4/2, 2013 at 22:7

3

Solved

I'm currently working a lot with DDD, and I'm facing a problem when loading/operating on aggregate roots from other aggregate roots. For each aggregate root in my model, I also have a repository. ...
Bureaucratize asked 7/2, 2011 at 9:28

11

Solved

I'm trying to get my head around how to properly use the repository pattern. The central concept of an Aggregate Root keeps coming up. When searching both the web and Stack Overflow for help with w...

3

Solved

I'm a little bit confused. I just watched Julie Lerman's Pluralsight video on DDD and here's the confusion I have: Having a simple online store example with: Purchase Orders with Items for Supplier...

3

After reading lot of posts, I realised if an aggregate root exists for a concept/context, we need to have a single repository for that whole concept/context. If thats the case, I see there won't b...

6

Solved

I am having some difficulty working out the best way to handle a fairly complex scenario. I've seen quite a few similar questions, but none addressed this scenario to my satisfaction. An Order (ag...
Revulsion asked 23/5, 2012 at 21:32

3

Solved

No, it is not a duplication question. I have red many sources on the subject, but still I feel like I don't fully understand it. This is the information I have so far (from multiple sources, be it...
Weinstein asked 9/10, 2019 at 22:46

1

Solved

First of all let's say I have two separated aggregates Basket and Order in an e-commerece website. Basket aggregate has two entities Basket(which is the aggregate root) and BaskItem defined as fol...

2

I've read several articles (also the book Functional domain modeling) where they propose to decouple state of the domain object from the behavior, but I cannot understand advantage of such approach...

4

I'm new to DDD, and currently looking at rebuilding an existing application by starting with a bit of a proof of concept while I'm still finding my way with DDD. My questions here only concern a sm...
Saintebeuve asked 15/10, 2018 at 8:50

3

If we follow DDD principles, one aggregate root should have only references (by id) to another aggregate root(s). Example: // Product Aggregate root class Product { // References to categories...
Vitriolic asked 26/12, 2016 at 21:29

2

Streams Some authors suggest to classify the events in "streams", and many authors identify the "stream" with the "aggregate Id". Say an event car.repainted by which we mean we repainted the car ...

4

Solved

I have a Meeting Object: Meeting{id, name, time, CreatedBy, UpdatedBy} and a MeetingAssignee{id, MeetingID, EmployeeId, CreatedBy, UpdatedBy) Meeting, as Aggregate root, has a method AssignEmp...
Contented asked 31/8, 2012 at 15:25

5

Solved

In Domain Driven Design, one of the defining characteristic of an Entity is that it has an identity. Problem: I am not able to provide a unique identity to Entities on instance creation. This ide...

1

Solved

I'm creating a new REST/hypermedia API for an on line auction service. I'm using this as an exercise to better understand Domain Driven Design approach as for the most part it seems like a good ap...

2

Solved

In DDD, repositories are used to perform serialization and de-serialization of aggregates, e.g. by reading and writing to a database. That way, aggregates can contain purer business logic, and won'...

2

I am wondering how to solve transactional consistency problems between aggregates. My first impression is that whenever you need transactional consistency between aggregates, you wrongly designed y...
Tal asked 4/4, 2017 at 19:35

1

Solved

How do we usually deal with versioning of an aggregate root? I was thinking along this line (I'm in a survey-design domain). One way to have versioning is to have an explicit method to create a n...
Eichler asked 7/3, 2017 at 16:18

2

Solved

BACKGROUND: I have a Person domain object. It is an aggregate root. I have included a portion of the class below. I am exposing methods to perform the objects behaviors. For instance, to add a Ban...

1

Solved

I am struggling to identify Domain objects. Problem: A company has one or multiple Sites A Site has main and multiple contacts Thus, a company has one or many contacts. These contacts are all...
Adaurd asked 8/10, 2014 at 16:15

1

Solved

I'm building an application that manages most of the LOB stuff at my company. I'm trying to wrap my head around DDD... starting with customer management. Many examples are very, very simple in rega...
Tahitian asked 6/7, 2016 at 18:33

4

I'm doing a family day care app, and thought I'd try DDD/CQRS/ES for it, but I'm running into issues with designing the aggregates well. The domain can be described pretty simply: A child gets en...

© 2022 - 2024 — McMap. All rights reserved.