Consumer 1 : Processes order
Consumer 2: get account agreements from source 1
Consumer 3: get account agreements from source 2
Client sends order to consumer 1
Consumer 1 needs to make a call in parallel to consumer 2 and 3.
When things are good this works fine. But if the host dies the order is reprocessed. Then we have three messages. Message for consumer 1 triggers messages for consumer 2 and 3 causing duplication.
The question is if the host dies for some reason what is the right way to identify that the message should not be reprocessed. i.e consumer 1 message should be processed but consumer 2 and 3 should not be.
Thanks