I'm finding the answer for a question that how I can keep two bounded contexts eventually consistent, when I am using event sourcing? I mean a situation when I have replicated some values from one context's entity to another context's value object. I know that I can use domain events to get notification, when value is changed, but how to update all those aggregates in my event store, which use those values? It is hard to query aggregate from event store by anything else property than id.
Example:
Identity Context:
- User (id, username, password, email ) - aggregate root
Discussion Context:
- Author (id,userame) - value object (these values is from Identity Context)
- Message (id, content, author ) - aggregate root