domain-events Questions
3
I would like to know how can a domain event be implemented (in DDD) if it is not a natural result of an aggregate's state change.
I will borrow the example of this post.
So lets say that we need an...
Lectureship asked 4/3, 2023 at 9:25
4
Solved
I am confused about where to handle domain events in an application that is based on the hexagonal architecture. I am talking about the bounded-context-internal domain events, and not about inter-c...
Messick asked 18/4, 2021 at 11:51
2
Solved
Domain events are well known in DDD, which can be published in Aggregate Roots or in Domain Services. My question here is, Can domain events be published in application services/use cases?
For exam...
Thaumatrope asked 27/5, 2020 at 22:37
6
Solved
I have few different Bounded Contexts in the domain. The validation of a CRUD operation is built in each Bounded Context.
For example, I can create an entity called GAME only if the person creati...
Gethsemane asked 23/5, 2013 at 11:42
2
Solved
I've been studying on domain driven design in conjunction with domain events. I really like the separations of concerns those events provide. I ran into an issue with the order of persisting a doma...
Charnel asked 5/3, 2014 at 10:1
1
Solved
I am using DDD with CQRS and Event Sourcing.
I need to use an Event Store (specifically this event store) within my custom implementation of IEventStore to persist and retrieve domain events but I ...
Stamm asked 15/8, 2018 at 18:23
3
Solved
Domain objects shouldn't have any dependencies, hence no dependency injection either. However, when dispatching domain events from within domain objects, I'll likely want to use a centralised Event...
Outsmart asked 25/10, 2018 at 15:3
2
In the DDD litterature, the returning domain event pattern is described as a way to manage domain events. Conceptually, the aggregate root keeps a list of domain events, populated when you do some ...
Halimeda asked 10/11, 2017 at 12:20
2
Solved
I'm a little confused about the flow in a system using domain events to build the read model. Particularly, how do we deal with the fact that the user expects data (and its view) to change when the...
Thickskinned asked 6/10, 2010 at 17:15
2
Solved
I am trying to further my understanding of DDD. More specifically, how to handle domain events via a message bus for asynchronous processing.
Lets say I have some architecture ->
_______________...
Guardroom asked 10/4, 2016 at 21:2
3
Solved
I've been learning about CQRS/ES. Looking at small example projects I often see events mutating the entity state. For instance If we look at the Order aggregate root:
public class Order : Aggregat...
Stilliform asked 25/2, 2015 at 12:26
2
Solved
I'm looking at domain events, specifically at 2 possibilities:
A. Using "generic" events like that:
public class OrderStateChangedEvent : IEvent
{
public Guid OrderId { get; }
public OrderState...
Gamone asked 13/11, 2015 at 15:32
2
Solved
Consider an aggregate with many properties. For example UserGroup. If I want to publish a UserGroupCreatedEvent I can do 2 things:
duplicate the properties from the just created UserGroup to
User...
Histrionic asked 28/8, 2015 at 14:16
3
Solved
Does any one know where to find example code for an implementation of Domain Events as described by Udi Dahan in Domain Events – Salvation?
Amid asked 31/12, 2010 at 10:13
2
Solved
I want to use elements of CQRS pattern in my project. I wonder if i do it right with Command and Events.
The thing that I'm not sure is if event can invoke command. To better show what i want to do...
Sutherlan asked 20/1, 2014 at 19:37
2
Solved
I've been using the Domain Events pattern for some time - it enables us to encapsulate as much behaviour in our domain layer as possible and provides a nice way for other parts of our application t...
Sosthenna asked 27/12, 2013 at 0:3
2
Solved
I'm in the process of adopting DDD concepts for designing our next projects, and more specifically CQRS.
After reading a LOT of stuff I'm now trying to implement a simple Proof Of Concept.
The th...
Cameral asked 27/4, 2013 at 9:54
2
I'm searching for a simple Java implementation of Udi Dahan's
Domain Events pattern and infrastructure as detailed in this article.
It's pretty simple and I've implemented my own interpretation, h...
Adal asked 18/4, 2012 at 20:0
1
Solved
I'm building an application with a domain model using CQRS and domain events concepts (but no event sourcing, just plain old SQL). There was no problem with events of SomethingChanged kind. Then I ...
Crwth asked 30/6, 2012 at 21:49
1
Solved
In all the examples of CQRS I've seen, the domain events trigger updates to the read model but nothing else. But what about when you want a domain event to cause other changes in the domain?
For e...
Metage asked 6/1, 2012 at 20:41
6
Solved
My ASP.NET MVC3 / NHibernate application has a requirement to fire off and handle a variety of events related to my domain objects. For example, an Order object might have events like OrderStatusCh...
Panegyric asked 4/5, 2011 at 15:46
1
Solved
I have a simple examle domain of two aggregate roots and one regular entity.
Tenant, UserGroup and User where in this particular sample the Tenant and User make up for the two AggregateRoots.
When...
Endamoeba asked 6/12, 2011 at 10:48
1
Solved
I'm new to DDD and I'm reading articles now to get more information. One of the articles focuses on domain events (DE). For example sending email is a domain event raised after some criteria is met...
Jejune asked 8/6, 2011 at 14:18
2
Solved
I'm trying to introduce domain events into a project. The concept is described in Udi Dahan's post - http://www.udidahan.com/2009/06/14/domain-events-salvation/
Here's the domain event code
publi...
Sylvester asked 12/4, 2011 at 2:16
2
Solved
In our application we raise domain events when something changes in the domain model. Some of the tasks that are performed by the event handlers must be done within the same transaction that was us...
Dongola asked 14/1, 2011 at 13:50
1 Next >
© 2022 - 2024 — McMap. All rights reserved.