Skip to content

TSharding is the simple sharding component used in mogujie trade platform. 欢迎共建。随时可以联系[email protected];[email protected];[email protected];[email protected]

License

Notifications You must be signed in to change notification settings

li-xiangdong/tsharding

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tsharding

TSharding is the simple sharding component used in mogujie trade platform.

分库分表业界方案

alt text

分库分表TSharding

TSharding组件目标
  • 很少的资源投入即可开发完成
  • 支持交易订单表的Sharding需求,分库又分表
  • 支持数据源路由
  • 支持事务
  • 支持结果集合并
  • 支持读写分离
TSharding Resources Abstract

alt text

TSharding Resources Classes

alt text

TSharding组件接入过程:
  • 引入TSharding JAR包
  • 配置所有分库的JDBC连接信息
  • Mybatis Mapper方法参数增加ShardingOrderPara/ShardingBuyerPara/ShardingSellerPara注解
  • 批量查询增加结果集合并逻辑

About

TSharding is the simple sharding component used in mogujie trade platform. 欢迎共建。随时可以联系[email protected];[email protected];[email protected];[email protected]

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 100.0%