Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

How do multiple integration event handlers guarantee the idempotence of this integration event #2087

Open
lcheny-qwq opened this issue Apr 18, 2023 · 0 comments

Comments

@lcheny-qwq
Copy link

lcheny-qwq commented Apr 18, 2023

In UserCheckoutAcceptedIntegrationEventHandler, I see that the IdentifiedCommand is created to ensure that consumption is not repeated.
var requestCreateOrder = new IdentifiedCommand<CreateOrderCommand, bool>(createOrderCommand, @event.RequestId);

When CheckoutAcceptedIntegrationEvent have more than one handler, and requires each handler not repeat consumption, create IdentifiedCommand in each handler, do not conflict? Because they both use the same @event.RequestId as the Id of the IdentifiedCommand.

Thank you very much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant