1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Update 读写分离&分库分表.md

typo
This commit is contained in:
anaer 2021-09-17 10:41:01 +08:00 committed by GitHub
parent fba4e83d07
commit 44cb97c11a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -54,7 +54,7 @@ hintManager.setMasterRouteOnly();
不论是使用哪一种读写分离具体的实现方案,想要实现读写分离一般包含如下几步:
1. 部署多台数据库,选择一种的一台作为主数据库,其他的一台或者多台作为从数据库。
1. 部署多台数据库,选择其中的一台作为主数据库,其他的一台或者多台作为从数据库。
2. 保证主数据库和从数据库之间的数据是实时同步的,这个过程也就是我们常说的**主从复制**。
3. 系统将写请求交给主数据库处理,读请求交给从数据库处理。