Hello all, my first post here.
I have read quite a few of the older posts - so if this is clearly answered somewhere I have not yet crossed it.
Given two BCs is it at all possible to create a read model in one BC that accurately represents the state of both - in an event sourced scenario?
Users Bounded Context - Manages user accounts, profiles, etc.
Orders Bounded Context - Manages orders.
In the Orders BC I have a read store that tracks order history - including any changes to user name, address, etc.
How would you write a read model in the Orders BC such that it shows the First + Last names of the user who made the order, at the time the order was made?
Do we replay events from both BCs into an aggregator, sort on date/time and then play then to the final read store?
Is there an easy way to guarantee ordering - I know Greg generally says we only guarantee ordering inside a single BC?
I realize that in most cases having timestamps that "clash" between BCs should not matter.
The read model should at least be deterministic, I can't play the events twice and get different results in the read store based on some non-deterministic ordering scenario.
Thoughts?
Thanks and great group you have here!
Will