Replies: 2 comments
-
Just curious, what decision did you make in the end: a |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just wrote a post on this: https://sebastiandedeyne.com/granular-events Tl;dr: If the data is not critical or most importantly you don't plan to react to, large events are fine. Otherwise, granular events are the more versatile choice. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there,
at the moment, I am digging deeper in event sourcing. I used CRUD for a long time now and I guess I'm still kinda stuck in the CRUD-way.
Well, now to my question:
I event-sourced a part of my application, where I create something called a
Job
. AJob
can have:title
description
created_at
So creating this
Job
is easy - but what do I do when it comes to updating?Is it an anti pattern to dispatch an event like
JobUpdated
, which contains changes to thetitle
and possibly thedescription
? Or should I dispatch multiple events like:JobTitleChanged
JobDescriptionChanged
Beta Was this translation helpful? Give feedback.
All reactions