An enterprise insurance provider is migrating its legacy claims processing platform to Google Cloud to reduce technical debt. The system consists of stateless application services connected to an on-premises relational database. The project team plans to implement a blue-green deployment pattern in Google Cloud to release new cloud-native microservices while updating the underlying database schema. Business continuity policies mandate zero downtime and immediate rollback capabilities if the new release fails. Which architecture strategy should the Cloud Architect recommend to manage database changes during this legacy migration phase?
- Adopt an expand-and-contract database schema migration pattern to ensure backward compatibility for the active blue deployment while supporting the new green release.Answer
- BApply non-backward-compatible database schema migrations directly to the live database prior to routing traffic to the green deployment environment.
- CMigrate the database workload directly to Cloud Spanner to automatically handle database schema modifications without requiring application-level schema compatibility logic.
- DDeploy a multi-region Google Kubernetes Engine cluster to automatically intercept and transform incompatible database queries at the network proxy layer.
Answer
Adopt an expand-and-contract database schema migration pattern to ensure backward compatibility for the active blue deployment while supporting the new green release.
The correct strategy is to adopt an expand-and-contract (parallel change) database schema migration pattern. When executing a blue-green deployment, both the old application version (blue) and the new application version (green) may run concurrently against the database. Using an expand-and-contract strategy ensures all schema changes are additive and backward-compatible during the transition phase, allowing the legacy blue application to remain functional and enabling instant rollback if issues occur with the green version.
Step-by-Step Solution
Key Concept
Expand-and-contract (parallel change) pattern for database schema migrations in zero-downtime deployments