ゼロダウンタイムの Schema 変更とは?
ゼロダウンタイムの schema 変更は、アプリケーションをオフラインにせずに、稼働中のトラフィックを処理しているデータベースを変更します。non-blocking またはオンラインの操作と後方互換なステップに依拠し、その間ずっと読み書きが継続します。expand-contract やオンラインでのテーブル再構築といった手法により、変更をユーザーから見えないようにします。
なぜ重要か
素朴な schema 変更は、完了するまでテーブルをロックしてすべてのクエリを停止させ、障害を引き起こすことがあります。オンラインで互換性のある手法により、サービスを稼働させたまま schema を進化させられます。
関連ガイド
What Is an Expand-Contract Migration?An expand-contract migration changes a schema in backward-compatible steps, first adding new structures, then…
What Is a Blue-Green Database Migration?A blue-green database migration keeps two database states in sync so traffic can cut over to the new schema a…
What Is a Blue-Green Service Swap?A blue-green service swap cuts traffic from a live environment to an identical idle one by repointing the rou…