Synchronizing new/stale bounded contexts
Chris Morley <[email protected]>
| Newsgroups | gmane.comp.programming.domain-driven-design |
|---|---|
| Message-ID | <CAFhJrr5J6ubKf9afOzc6QBFbLs_=640ECtLxDDjra2a8Y=hP9g@mail.gmail.com> |
Dear all, If I have events in one bounded context's event store, and these needed to be replayed to another bounded context (perhaps this bounded context had been offline for a long time, or was a completely new context that has been added), what would be the best ways to achieve this in terms of messaging and the best fields to put inside the messages? Would we use an sequential ID on all messages, and simply request all messages to be replayed from the last that we received? Are there any examples of event sourcing infrastructure code that provides this capability (although Java is fine, ideally in .Net as I am using Windows On-Premise Service Bus 1.0)? Many thanks, Chris