Hi,
Since instances of our services( a single BC like Order ) are distributed (e.g) Kubernetes we are not able to extract the correct state from our DB.
Multiple transactions together constitute an aggregated state.(e.g) Multiple order lines
changing state for placing one order.
So at a point in time we are not sure if all the order lines have the correct status. So we have to emit an event when an instance of a service changes the state of a particular order line. We plan to have a snapshot of the statuses in the event.
When any instance of a service receives all correct statues the order can be placed by
that instance.
This is coordination among instances using a snapshot event. Is this a known pattern ?
Is there any recommendation ?
Thanks.