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

Projection/ReadModel Corruption #13

Open
darkspock opened this issue May 5, 2022 · 0 comments
Open

Projection/ReadModel Corruption #13

darkspock opened this issue May 5, 2022 · 0 comments

Comments

@darkspock
Copy link

If we change the ProjectionHandler, it may leave "corrupted" data, as the logic of storing information has change.
Reading old data may crash, as the new ReadModel expect other information.
Updating all the readmodels may not be possible in large tables.
What are the options?
I normally use a "version" attribute, that helps me identify this cases, and I recalculate the projection on realtime, so the first users has some performance impact. (should consider in these case projection stampede)

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