Replies: 1 comment 8 replies
-
@ahoiroman As far as I understood, your Item is projection, then I would suggest generating ItemData from ItemAggregateRoot rather than from projection, which may or may not exist during runtime (Happens when projections are being queued). |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everybody,
I'm quite new to the concept of event sourcing and at the moment I'm playing around in a pretty large app to move to event sourcing on smaller features.
Now I was on my way to implement the aggregates on a small controller like this:
As you can see, I need to return a DTO called
ItemData
, which contains the item I just saved. But the way I am doing this, it kinda looks "fishy" as I am searching for theItem
I just saved using the UUID.Beta Was this translation helpful? Give feedback.
All reactions