Skip to content

balancebeam/galaxy

Repository files navigation

GALAXY

( Distribute Transaction Framework )

提供基于两阶段提交(Try/Confirm/Cancel)的分布式事务实现方案

支持范围

  • JDK6+
  • All RPC
  • Springframework 3.2+

功能简介

  • 事务预提交
  • 事务确认提交
  • 事务回滚

架构图

Galaxy Architecture

Demo

  • galaxy-demo-purchase:商城系统
  • galaxy-demo-repository:库存系统
  • galaxy-demo-order:订单系统

测试用例

  • 正常下单:localhost:8080/purchase/rest/{quantity}
  • 模拟减库存失败:localhost:8080/purchase/rest/case/1
  • 模拟下单失败:localhost:8080/purchase/rest/case/2
  • 模拟减库存超时:localhost:8080/purchase/rest/case/3
  • 模拟下单超时:localhost:8080/purchase/rest/case/4

About

distributed transactional middleware (tcc)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •