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

Discussion: Process managers can miss events in theory #22

Open
benwilson512 opened this issue Jan 9, 2021 · 2 comments
Open

Discussion: Process managers can miss events in theory #22

benwilson512 opened this issue Jan 9, 2021 · 2 comments
Assignees

Comments

@benwilson512
Copy link
Member

Per a conversation with @vhf, event log readers that rely on new_events = select * from events where id > $last_event_id can miss events if the following scenario obtains:

https://gist.github.com/vhf/d11f24f8ab3bb46e35dc9ccef6784eee

Will followup with additional discussion.

@benwilson512 benwilson512 self-assigned this Jan 9, 2021
@benwilson512
Copy link
Member Author

So after some further thought, maybe logical replication is the answer here. It would certainly solve the issue of missing inserts. Need to do some testing.

@LostKobrakai
Copy link
Contributor

Leaving this here as a resource with possible solutions to the discussed problem: https://blog.sequinstream.com/postgres-sequences-can-commit-out-of-order/

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

No branches or pull requests

2 participants