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