Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Several questions about repeated events. #228

Closed
jiuang opened this issue Jul 18, 2018 · 2 comments
Closed

Several questions about repeated events. #228

jiuang opened this issue Jul 18, 2018 · 2 comments

Comments

@jiuang
Copy link

jiuang commented Jul 18, 2018

Q1: What problems the repeated SagaEndedEvent would cause?

Q2: It would write the same TxStartedEvent/TxEndedEvent in case of trying commit again.
Then what was the idea for initial design?
What problems the repeated TxStartedEvent/TxEndedEvent would cause?

Q3: Are there any other situations except above?

@WillemJiang
Copy link
Member

Q1: As we have the EventScanner and the Saga starter caller to send the SagaEndedEvent.
But it's no harm if there are more than two SagaEndedEvent as the Saga processing is ended eventually.
Q2: The event should be logged incase of the service shutdown by accident.

Q3: Currently I don't think there any other bad situations which we need to deal with.

@jiuang
Copy link
Author

jiuang commented Jul 23, 2018

Okay, I got, thanks so much!

@jiuang jiuang closed this as completed Jul 23, 2018
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

2 participants