How to achieve zero downtime with database schema changes

I need to achieve zero downtime for my e-commerce site when making database schema changes. The database is sql server 2005. Can someone check if the following steps are possible? Please provide your suggestions.

  • The main database will serve the requests, and the changes will be replicated to the mirror database.
  • Before deploying, stop the replication process from principal to mirror.
  • Display database schema changes in the mirror.
  • For a short pause, make basic read-only access.
  • Re-copy the changes from the main to the mirror.
  • Send mirror requests (perform role switching)
  • Make database schema changes for the original principal (now the mirror after the role switch).
+3
source share
1 answer

I have doubts about the possibility and usefulness of step 5 - if the director is read-only and there is a role switch, why are you trying to reproduce the changes?

0
source

Source: https://habr.com/ru/post/1774282/


All Articles