Loading...
Loading...
Compare original and translation side by side
| Term | Definition |
|---|---|
| expand | Additive schema change compatible with existing code |
| backfill | Data migration that populates new structures from old data |
| dual-write | Temporarily writing old and new representations |
| dual-read | Temporarily reading from both old and new representations |
| cutover | The point where traffic or logic switches to the new path |
| contract | Removal of deprecated schema after compatibility window closes |
| compatibility window | Period where old and new code must both work |
| invariant | Condition that must remain true during migration |
| shadow column | New field added beside the old field during migration |
| rollback point | Last safe state that can be restored without data loss |
| 术语 | 定义 |
|---|---|
| expand | 与现有代码兼容的增量式架构变更 |
| backfill | 从旧数据填充新结构的数据迁移操作 |
| dual-write | 临时同时写入旧版和新版数据表示 |
| dual-read | 临时同时读取旧版和新版数据表示 |
| cutover | 流量或逻辑切换到新路径的节点 |
| contract | 兼容窗口关闭后移除已弃用的架构 |
| compatibility window | 旧版和新版代码必须同时正常运行的时间段 |
| invariant | 迁移过程中必须始终保持成立的条件 |
| shadow column | 迁移期间在旧字段旁新增的字段 |
| rollback point | 可在无数据丢失情况下恢复到的最后安全状态 |
| $ARGUMENTS | Mode |
|---|---|
| Build the full migration sequence |
| Audit an existing evolution plan |
| Design the data backfill strategy |
| Plan read or write switchover |
| Plan the contract and removal stage |
| Natural language about zero-downtime schema changes | Auto-detect the closest mode |
| Empty | Show the mode menu with examples |
| 参数 | 模式 |
|---|---|
| 构建完整的迁移序列 |
| 审核现有的演化规划 |
| 设计数据回填策略 |
| 规划读取或写入切换 |
| 规划收缩与移除阶段 |
| 关于零停机架构变更的自然语言描述 | 自动检测最匹配的模式 |
| 空输入 | 显示模式菜单及示例 |
| # | Mode | Example |
|---|---|---|
| 1 | Plan | |
| 2 | Review | |
| 3 | Backfill | |
| 4 | Cutover | |
| 5 | Deprecate | |
| # | 模式 | 示例 |
|---|---|---|
| 1 | 规划 | |
| 2 | 审核 | |
| 3 | 回填 | |
| 4 | 切换 | |
| 5 | 弃用 | |
database-architectrelease-pipeline-architectplandatabase-architectrelease-pipeline-architectplanreferences/change-type-decision-matrix.mdreferences/sample-rollout-sequences.mdreferences/output-templates.mdreferences/change-type-decision-matrix.mdreferences/sample-rollout-sequences.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/change-type-decision-matrix.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/change-type-decision-matrix.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/sample-rollout-sequences.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/sample-rollout-sequences.mdreferences/migration-failure-modes.mdreferences/output-templates.mdreferences/output-templates.mdreferences/output-templates.md| Complexity | Strategy |
|---|---|
| Small | Use a single additive compatibility path for simple renames, nullable adds, or shadow-column introductions. |
| Medium | Use explicit staged execution: expand, deploy compatibility logic, backfill in chunks, validate, cut over, then contract. |
| Large | Treat the change as a rollout program with separate read and write cutovers, evidence gates, and phased consumer movement. |
| 复杂度 | 策略 |
|---|---|
| 小型 | 针对简单重命名、可空字段添加或shadow column(影子列)引入,使用单一增量兼容路径。 |
| 中型 | 使用明确的分阶段执行流程:expand(扩展)、部署兼容逻辑、分块回填、验证、切换、然后contract(收缩)。 |
| 大型 | 将变更视为部署项目,分开处理读取和写入切换、设置证据 gates、分阶段迁移消费者。 |
references/change-type-decision-matrix.mdreferences/migration-failure-modes.mdreferences/sample-rollout-sequences.mdreferences/output-templates.mdreferences/change-type-decision-matrix.mdreferences/migration-failure-modes.mdreferences/sample-rollout-sequences.mdreferences/output-templates.md| File | Purpose | When to Read |
|---|---|---|
| Maps schema change types to safe evolution patterns, compatibility windows, and red flags | Any |
| Catalog of common rollout, backfill, and cutover failure modes with mitigations | |
| Reference expand-contract sequences for common migration shapes | Multi-phase |
| Standard response templates for plans, reviews, backfills, cutovers, and deprecations | Presenting final output in any mode |
| 文件 | 用途 | 查阅时机 |
|---|---|---|
| 将架构变更类型映射到安全演化模式、兼容窗口和风险警示 | 任何 |
| 记录常见部署、回填和切换失败模式及缓解方案 | |
| 常见迁移场景的参考扩展-收缩序列 | 多阶段 |
| 规划、审核、回填、切换和弃用的标准响应模板 | 任何模式下呈现最终输出时 |