Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add transaction's final_lsn in each event #56

Merged
merged 1 commit into from
May 3, 2024

Conversation

DaemonSnake
Copy link
Contributor

In the cases where avoiding re-processing of events is mandatory
the consumer will need to have access to the LSN of the current transaction

For instance using a redis lock with an expire to avoid multiple workers to process the same event
or storing the latest LSN when a transaction is finished processing to know where the consumer shoud resume if it gets restarted (XXX/XXX start location in START_REPLICATION_SLOT)

@cpursley cpursley merged commit 7ca2126 into cpursley:master May 3, 2024
1 check failed
@DaemonSnake DaemonSnake deleted the lsn_in_event branch May 3, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants