MeadiatR architecture best practice #789
LukasKuchta
started this conversation in
General
Replies: 1 comment
-
I would create a notification called UserCreated that is published in the CreateUser handler after the user is Created. Then have a NotificationHandler (called Email, Communication, or something like that) that handles UserCreated and sends an email. If you have other chores that should run after a user is created, just add more handlers. |
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
-
HI, @jbogard, i read your advice why do not send another comman from handler. Better is create notification and consume it.
Is there any hint what system commponent could be command/handler and what service method? Can i use cqrs only for db IO and others requirements make as methods in service? Where are the bounds
Beta Was this translation helpful? Give feedback.
All reactions