README.md 2.0 KB
Newer Older
Y
yudiandemingzi 已提交
1
# ShardingSphere实现分库 + 读写分离
X
xubo 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57

有关ShardingSphere实现分库分表前面写了7篇博客作为该项目做详细说明。

  1、[分库分表(1) --- 理论](https://www.cnblogs.com/qdhxhz/p/11608222.html)

  2、[分库分表(2) --- ShardingSphere(理论)](https://www.cnblogs.com/qdhxhz/p/11629883.html)

  3、[分库分表(3) ---SpringBoot + ShardingSphere实现读写分离](https://www.cnblogs.com/qdhxhz/p/11656205.html)

  4、[分库分表(4) ---SpringBoot + ShardingSphere 实现分表](https://www.cnblogs.com/qdhxhz/p/11651163.html)

  5、[分库分表(5) ---SpringBoot + ShardingSphere 实现分库分表](https://www.cnblogs.com/qdhxhz/p/11673493.html)

  6、[分库分表(6)--- SpringBoot+ShardingSphere实现分表+ 读写分离](https://www.cnblogs.com/qdhxhz/p/11688651.html)
  
  7、[分库分表(7)--- SpringBoot+ShardingSphere实现分库分表 + 读写分离](https://www.cnblogs.com/qdhxhz/p/11688371.html)

该项目拉下后配置数据库地址,和创建相应的库和表后就可以运行成功。


## 一、项目概述


#### 1、技术架构

项目总体技术选型

```
SpringBoot2.0.6 + shardingsphere4.0.0-RC1 + Maven3.5.4  + MySQL + lombok(插件)
```

#### 2、项目说明

`场景` 在实际开发中,如果数据库压力大我们可以通过  **分库分表**  的基础上进行 **读写分离**,来减缓数据库压力。

#### 3、项目整体结构

```makefile
spring-boot-sharding-ssphere # 父工程
 
  | #实现读写分离功能
  ---db-read-write 
 
  | #实现分表功能
  ---sub-table
    
  | #实现分库分表功能
  ---sub-db-table                      
     
  | #实现分表 + 读写分离
  ---sub-table-read-write                                        
  
   | #实现分库分表 + 读写分离
  ---sub-db-table-read-write                  
                        
```
Y
yudiandemingzi 已提交
58
![acda64387e0896604b5932dc433c8b77](https://user-images.githubusercontent.com/37285812/142141535-7b855cf0-efc4-417d-a21c-232008fdac56.gif)
X
xubo 已提交
59 60 61 62

<br>