-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use EventMatcher when registering event handlers #84
Comments
Thank you for sharing this. This idea seemed neat to me and so I had it copied in one of my projects. After using it for a while, I ended up merging both handlers,
Unless there are huge performance considerations (which I doubt, since go makes running many thousands of goroutines at the same time possible), I found it led to a simpler overall design. |
Glad it could help! I would love to hear more about your implementation, maybe you can show an example in a gist? |
This is in magicbus,
There are 2 ways to process events:
(Aggregates only get the events whose |
An example:
The text was updated successfully, but these errors were encountered: