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

Rework migration binary to be run continuously #113

Open
tlater-famedly opened this issue Feb 13, 2025 · 0 comments
Open

Rework migration binary to be run continuously #113

tlater-famedly opened this issue Feb 13, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@tlater-famedly
Copy link
Contributor

tlater-famedly commented Feb 13, 2025

In https://github.com/famedly/infra-meta/issues/2008#issuecomment-2655984434 infra asked whether they could just continuously run the migration before syncs.

This makes sense, as it would prevent missing migrations in the future, but the binary isn't currently designed for this kind of task, and will significantly increase the time syncs take, while hammering Zitadel with POST requests for data it already has, and won't show any signs of it if migration fails, instead proceeding to sync to a broken database.

We should adapt the binary to be used as a clean pre-sync, perhaps even directly integrate that into famedly-sync. We can keep a sentinel value somewhere in Zitadel metadata to denote a schema "version" while we're at it, which would significantly increase robustness in the future.

Basically, we're moving towards rolling our own database on top of the Zitadel storage model ;)

@tlater-famedly tlater-famedly added the enhancement New feature or request label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant