Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ New API 集群采用主从架构设计:

| 架构类型 | 组件构成 | 工作方式 | 应用配置方式 |
| ------------------ | ------------------------------------------------- | ------------------------------------------------------------------ | ---------------------------- |
| **主从复制架构** | 1个主库`<br />`N个从库 | 主库处理写入`<br />`从库处理读取`<br />`主从数据自动同步 | 配置主库地址作为 `SQL_DSN` |
| **数据库集群架构** | 多个对等节点`<br />`代理层(ProxySQL/MySQL Router) | 所有节点都可读写`<br />`通过代理层实现负载均衡`<br />`自动故障转移 | 配置代理层地址作为 `SQL_DSN` |
| **主从复制架构** | 1个主库<br />N个从库 | 主库处理写入<br />从库处理读取<br />主从数据自动同步 | 配置主库地址作为 `SQL_DSN` |
| **数据库集群架构** | 多个对等节点<br />代理层(ProxySQL/MySQL Router) | 所有节点都可读写<br />通过代理层实现负载均衡<br />自动故障转移 | 配置代理层地址作为 `SQL_DSN` |
Comment on lines +47 to +48

<Callout type="warn" title="重要提示">
无论选择哪种架构,应用程序的 `SQL_DSN` 配置都只需要一个统一入口地址。
Expand Down