All Projects → pktczwd → tcc-transaction

pktczwd / tcc-transaction

Licence: Apache-2.0 license
tcc transaction implementation

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to tcc-transaction

dubbox
dubbox原始版本的升级版,主要根据GitHub各路大神代码的整合
Stars: ✭ 13 (+0%)
Mutual labels:  tcc-transaction
Seata
🔥 Seata is an easy-to-use, high-performance, open source distributed transaction solution.
Stars: ✭ 21,351 (+164138.46%)
Mutual labels:  tcc-transaction
silky
The Silky framework is designed to help developers quickly build a microservice development framework through simple code and configuration under the .net platform.
Stars: ✭ 146 (+1023.08%)
Mutual labels:  tcc-transaction

简介

  • tcc-transaction是TCC型事务java实现
  • 原项目请参见tcc-transaction

改动

  • 添加了对实现原理的注释.
  • 事务恢复器移除了对quartz的依赖,改写为spring schedule驱动.
  • 提升spring版本到4.
  • 日志由log4j切换为logback.
  • 将xml方式配置改写为了java code方式.
  • 使用方式发生了变化.在配置类上加入@EnableTccTransaction来启用tcc-transaction.
  • dubbo示例改写为restful示例.
  • 略微调整了示例的逻辑.

示例

  • 使用springboot对示例进行了改写.
  • 示例使用http+json的方式进行交互.
  • tcc-transaction-order为订单服务.端口号7000.(入口)
  • tcc-transaction-capital为账户服务.端口号7001.
  • tcc-transaction-redpacket为红包服务.端口号7002.
  • 运行示例时指定redis或者mysql作为TransactionRepository
--spring.profiles.active=redis
--spring.profiles.active=db
  • redis连接或mysql连接需自行改动.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].