seata 1.4.2 分布式事务TCC模式示例

上传者: liaomingwu | 上传时间: 2022-05-19 12:53:27 | 文件大小: 66KB | 文件类型: ZIP
1. 在seata 1.4.2 分布式事务AT模式示例的基础上增加TCC模式; 2. 目前采用的是AT模式和TCC模式混合使用的方式; 3. Account模块采用了TCC模式,整合业务代码; 4. Product模块采用了TCC模式,未整合业务代码; 5. Order模块继续采用AT模式; 6. 该示例主要用作技术调研和实验,业务应用还需要结合业务场景进行规划、设计和开发。

文件下载

资源详情

[{"title":"( 62 个子文件 66KB ) seata 1.4.2 分布式事务TCC模式示例","children":[{"title":"seata-server-tcc-demo","children":[{"title":"seata-account-server","children":[{"title":"pom.xml <span style='color:#111;'> 716B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"application-druid.yml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"AccountMapper.xml <span style='color:#111;'> 881B </span>","children":null,"spread":false}],"spread":true},{"title":"mybatis","children":[{"title":"mybatis-config.xml <span style='color:#111;'> 729B </span>","children":null,"spread":false}],"spread":true},{"title":"bootstrap.yml <span style='color:#111;'> 689B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"platform","children":[{"title":"account","children":[{"title":"handler","children":[{"title":"GlobalExceptionHandler.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"AjaxResult.java <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"AccountApplication.java <span style='color:#111;'> 669B </span>","children":null,"spread":false},{"title":"domain","children":[{"title":"Account.java <span style='color:#111;'> 1.10KB </span>","children":null,"spread":false}],"spread":true},{"title":"tcc","children":[{"title":"service","children":[{"title":"AccountTccService.java <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"AccountTccServiceImpl.java <span style='color:#111;'> 1.84KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"AccountMapper.java <span style='color:#111;'> 276B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"AccountController.java <span style='color:#111;'> 1.82KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"AccountService.java <span style='color:#111;'> 238B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"AccountServiceImpl.java <span style='color:#111;'> 1.97KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 3.34KB </span>","children":null,"spread":false},{"title":"seata-product-server","children":[{"title":"pom.xml <span style='color:#111;'> 715B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"application-druid.yml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"ProductMapper.xml <span style='color:#111;'> 977B </span>","children":null,"spread":false}],"spread":true},{"title":"mybatis","children":[{"title":"mybatis-config.xml <span style='color:#111;'> 729B </span>","children":null,"spread":false}],"spread":true},{"title":"bootstrap.yml <span style='color:#111;'> 850B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"platform","children":[{"title":"product","children":[{"title":"handler","children":[{"title":"GlobalExceptionHandler.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"AjaxResult.java <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":true},{"title":"domain","children":[{"title":"Product.java <span style='color:#111;'> 1.31KB </span>","children":null,"spread":false}],"spread":false},{"title":"tcc","children":[{"title":"service","children":[{"title":"ProductTccService.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ProductTccServiceImpl.java <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"ProductMapper.java <span style='color:#111;'> 280B </span>","children":null,"spread":false}],"spread":false},{"title":"controller","children":[{"title":"ProductController.java <span style='color:#111;'> 1.32KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"ProductService.java <span style='color:#111;'> 283B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"ProductServiceImpl.java <span style='color:#111;'> 2.14KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"ProductApplication.java <span style='color:#111;'> 660B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"seata-oder-server","children":[{"title":"pom.xml <span style='color:#111;'> 921B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":[{"title":"application.yml <span style='color:#111;'> 1.71KB </span>","children":null,"spread":false},{"title":"application-druid.yml <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"mapper","children":[{"title":"OrderMapper.xml <span style='color:#111;'> 2.31KB </span>","children":null,"spread":false}],"spread":true},{"title":"mybatis","children":[{"title":"mybatis-config.xml <span style='color:#111;'> 729B </span>","children":null,"spread":false}],"spread":true},{"title":"bootstrap.yml <span style='color:#111;'> 846B </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"platform","children":[{"title":"order","children":[{"title":"handler","children":[{"title":"GlobalExceptionHandler.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"AjaxResult.java <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":false},{"title":"config","children":[{"title":"FeignConfig.java <span style='color:#111;'> 330B </span>","children":null,"spread":false}],"spread":false},{"title":"domain","children":[{"title":"Order.java <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false}],"spread":false},{"title":"OrderApplication.java <span style='color:#111;'> 687B </span>","children":null,"spread":false},{"title":"dto","children":[{"title":"ReduceBalanceRequest.java <span style='color:#111;'> 444B </span>","children":null,"spread":false},{"title":"ReduceStockRequest.java <span style='color:#111;'> 470B </span>","children":null,"spread":false},{"title":"PlaceOrderRequest.java <span style='color:#111;'> 891B </span>","children":null,"spread":false}],"spread":false},{"title":"tcc","children":[{"title":"service","children":[{"title":"impl","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"mapper","children":[{"title":"OrderMapper.java <span style='color:#111;'> 257B </span>","children":null,"spread":false}],"spread":false},{"title":"feign","children":[{"title":"service","children":[{"title":"AccountFeignService.java <span style='color:#111;'> 636B </span>","children":null,"spread":false},{"title":"ProductFeignService.java <span style='color:#111;'> 682B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"controller","children":[{"title":"OrderController.java <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":false},{"title":"service","children":[{"title":"OrderService.java <span style='color:#111;'> 280B </span>","children":null,"spread":false},{"title":"impl","children":[{"title":"OrderServiceImpl.java <span style='color:#111;'> 3.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"entity","children":[{"title":"AjaxResult.java <span style='color:#111;'> 3.90KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":null,"spread":false}],"spread":true},{"title":"main","children":[{"title":"resources","children":null,"spread":false},{"title":"java","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".idea","children":[{"title":"codeStyles","children":[{"title":"Project.xml <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"codeStyleConfig.xml <span style='color:#111;'> 153B </span>","children":null,"spread":false}],"spread":true},{"title":"misc.xml <span style='color:#111;'> 541B </span>","children":null,"spread":false},{"title":"jarRepositories.xml <span style='color:#111;'> 872B </span>","children":null,"spread":false},{"title":"compiler.xml <span style='color:#111;'> 646B </span>","children":null,"spread":false},{"title":"workspace.xml <span style='color:#111;'> 7.87KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 184B </span>","children":null,"spread":false}],"spread":true},{"title":"readme.txt <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明