背景
学习分布式数据库中间件ShardingSphere源码
模块简介
核心模块
根据官网的核心引擎架构图,可以了解到,ShardingSphere的核心就是对sql的一系列操作然后真正触发执行,并对结果集进行合理的归并
源码中分包,红色框是核心模块引擎代码
features
核心包
discovery
encrypt
readwrite-splitting
shadow
sharding
infra
引擎包
jdbc
shardingsphere-jdbc接入模块
core
jdbc核心包
spring
spring模块
governance
管理模块
proxy
shardingsphere-proxy接入模块
frontend
前端模块
backend
后端模块
common
通用模块,用于一些yml配置转换为proxy本身配置
bootstrap
拉起服务