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

Out-of-order events are skipped when using the :concurrency option #50

Open
jdav-dev opened this issue Sep 26, 2023 · 1 comment
Open
Assignees

Comments

@jdav-dev
Copy link

Commanded.Projections.Ecto passes the :concurrency option introduced in commanded/commanded#486 through to the underlying Commanded.Event.Handler. However, out-of-order events are skipped when compared to the projection_versions table.

@jdav-dev jdav-dev changed the title Out-of-order events are skipped when using the concurrency option Out-of-order events are skipped when using the :concurrency option Sep 26, 2023
@slashdotdash
Copy link
Member

slashdotdash commented Jan 17, 2024

You must not use the concurrency option with an Ecto projector as it expects events to be processed sequentially and in order.

If the concurrency option is specified for an Ecto projector then a compiler or runtime warning should be emitted as this behaviour is unsafe. I will add this warning.

@slashdotdash slashdotdash self-assigned this Jan 17, 2024
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