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

Track Database Version for Compatibility with API Service #68

Open
Patowhiz opened this issue Oct 3, 2024 · 0 comments
Open

Track Database Version for Compatibility with API Service #68

Patowhiz opened this issue Oct 3, 2024 · 0 comments

Comments

@Patowhiz
Copy link
Collaborator

Patowhiz commented Oct 3, 2024

Summary:
Climsoft will have different services (PWA, API, and Database), each with potentially different version numbers due to updates happening at different times. To prevent runtime issues caused by database updates, I propose tracking the database version.

Proposal:
Upon every restart, the API service will check the database version to ensure compatibility. If an incompatibility is detected, the API will determine whether it needs to perform steps to upgrade the database.

Benefits:

  • Avoids runtime bugs caused by mismatched versions between services.
  • Ensures seamless coordination between API and Database during updates.

Action Items:

  • Implement version tracking for the database.
  • Add a mechanism in the API service to check and compare database version on startup.
  • Define the steps to upgrade the database if incompatibility is found.
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