Context Lookups #986
kyle-bradley
started this conversation in
Ideas
Replies: 1 comment
-
@rasmus - In case this doesn't automatically notify you |
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
-
There are a few places where it is useful to grab the association between two identities, which can greatly simplify the read models and sagas.
For example:
AccountByUserIdReadModel
Handles AccountCreatedEvent
Handles AccountInfoUpdatedEvent
The way I see it there are three options to solve this. Either:
In both the Locator and the Query Handler you can benefit for a specialize look-up that maps relationships. In this case, AccountId to UserId(s).
Throughout the years, my teams have taken various approaches in solving this problem. I would be interested in hearing how others have gone about it.
Might be worth building in a standard into EventFlow
Beta Was this translation helpful? Give feedback.
All reactions