update at 2025-09-17 17:42:05

This commit is contained in:
douboer
2025-09-17 17:42:05 +08:00
parent 5a0579d8d1
commit 714c9554d4

View File

@@ -48,32 +48,27 @@ mysql:
```mermaid ```mermaid
flowchart TD flowchart TD
subgraph Client Side subgraph Client Side
A[HTTP 请求] -->|流量 0%| B[蓝系统 (旧版本)] A[HTTP Request] -->|flow 0 percent| B[Blue System (old version)]
A -->|流量 100%| C[绿系统 (新版本)] A -->|flow 100 percent| C[Green System (new version)]
end end
subgraph MySQL Cluster subgraph MySQL Cluster
D[(MySQL 主库/集群)] D[(MySQL Primary / Cluster)]
end end
%% 蓝系统行为 %% Blue system behavior
B -->|完成旧事务提交| D B -->|finish old transactions| D
B -->|使用旧 schema 字段| D B -->|use old schema fields| D
%% 绿系统行为 %% Green system behavior
C -->|新请求写入| D C -->|handle new requests| D
C -->|使用新 schema 字段| D C -->|use new schema fields| D
%% 注释 %% Notes
classDef info fill:#f9f,stroke:#333,stroke-width:1px;
B:::info
C:::info
D:::info
%% 说明
subgraph Notes subgraph Notes
N1[蓝系统流量为 0但仍完成旧事务确保数据一致性] N1[Blue system flow 0 but finishes old transactions to ensure data consistency]
N2[蓝绿系统共用 MySQLSchema 需向后兼容] N2[Blue/Green share MySQL, schema must be backward compatible]
N3[写操作幂等,避免重复或冲突] N3[Write operations should be idempotent to avoid conflicts]
end end
``` ```