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

Question: How does the library deal with migrated documents a version above it? #57

Open
Lukejkw opened this issue Sep 13, 2022 · 0 comments

Comments

@Lukejkw
Copy link

Lukejkw commented Sep 13, 2022

In a rolling deployment, each instance of the application is taken down after successfully creating a new instance of the application.

In this scenario, there is a chance that a new version of the application could write a document with the new schema and then an old instance of the application could read this new document.

As far as I can work out, this would clearly break serialization as the old instance of the application would never be able to migrate down.

This seems like a big flaw with on-the-fly migrations? How are others dealing with this scenario?

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