一、ShardingSphere项目简介
ShardingSphere 项目的前身是 Sharding-JDBC,最早是国内当当网架构部开发的,后来部分核心开发人员加入京东,专职开发ShardingSphere,并和京东白条研发部门一起合作,推动项目在京东白条落地。 2018年ShardingSphere项目捐赠给了Apache组织。
ShardingSphere包括ShardingSphere-JDBC、 ShardingSphere-Proxy 、ShardingSphere-Sidecar(规划中),三个产品分别用于Java语言、异构语言、云原生场景,构成了一个完整的分库分表解决方案。这里主要介绍ShardingSphere-Proxy 的使用。
ShardingSphere-Proxy功能介绍
1、读写分离
2、分库
3、分表
4、事务支持
二、部署和使用
2.1 下载
在官方下载页面,下载 ShardingSphere-Proxy https://shardingsphere.apache.org/document/current/en/downloads/
2.2 安装
参考
ShardingSphere 项目历史 https://www.infoq.cn/article/ltx6p0s6v7uzk2fa*jiu
中文官方文档 https://shardingsphere.apache.org/document/current/cn/overview/
ShardingSphere-Proxy 分享 https://github.com/apache/shardingsphere/blob/master/docs/blog/content/material/proxy.cn.md
mysql 预处理 https://www.cnblogs.com/geaozhang/p/9891338.html