Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Why are DomainEvents wrapped into Notifications into Ap layer ? #276

Answered by LukasKuchta
LukasKuchta asked this question in Q&A
Discussion options

Hi, why is ther this concept? Wrapped one into another ? Domain event can be handled directly in App layer. Something what i overlooked?

example:
https://github.com/kgrzybek/modular-monolith-with-ddd/blob/master/src/Modules/Meetings/Application/MeetingComments/MeetingCommentLikedNotification.cs

You must be logged in to vote

OK. I found the explanation on the Kamil's blog. There are two kinds of events

  1. one is handled inside the same transaction like aggregat's operation
  2. outside the transaction. Public event / Domain notification. In the same strasaction like aggregate is only save those events into persistenat layer.

Replies: 1 comment

Comment options

OK. I found the explanation on the Kamil's blog. There are two kinds of events

  1. one is handled inside the same transaction like aggregat's operation
  2. outside the transaction. Public event / Domain notification. In the same strasaction like aggregate is only save those events into persistenat layer.
You must be logged in to vote
0 replies
Answer selected by LukasKuchta
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /