How would I load initial data (from the UI let's say) when integrating two Bounded Contexts via messaging?
Example:
- Bounded Context #1 - Airport
- Bounded Context #2 - User Agent (UI) - Responsible for displaying/updating Airplaines in the airport.
When UI is just starting, I want to query the "Airport" for ALL airplaines. How would I go about it?
My current thinking is to simulate a method call:
- UI Context - Post a "GetAirplanes" message to the "UI Queue"
- Airport Context - subscribes to "UI Queue", sees "GetAirplanes" message
- Airport Context - Post a "AllAirplanes" message on the "Airport Queue"
- UI Context - subscribes to "Airport" queue
- UI Context - receives message "AllAirplanes" and updates HTML table.