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

Dynamically increasing backtracking window #444

Open
patriknw opened this issue Aug 31, 2023 · 0 comments
Open

Dynamically increasing backtracking window #444

patriknw opened this issue Aug 31, 2023 · 0 comments

Comments

@patriknw
Copy link
Member

It can be difficult to configure the optimal akka.persistence.r2dbc.query.backtracking.window. If too large there is overhead when starting up since all envelopes (without event payload) must be loaded. If too small there is a risk of hitting "Rejecting unexpected sequence number" error, especially when combined with scaling number of projection instances.

Note that this must also play well with akka.projection.r2dbc.offset-store.time-window.

One idea is to be able to increase the backtracking window in case of these errors, so that next restart look further back.

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

1 participant