Comments (4)
easytransaction自身暂不支持,
除非使用底层rpc框架的filter自行实现(如restTemplate的interceptor),但这种实现不不能跨rpc框架使用(不能无缝切换到dubbo)
如果着急可以在EasyTransaction底层使用的restTemplate加入interceptor
不着急可以等到周末,我这边提供/暴露一个EasyTransaction层级的header修改方案
from easytransaction.
谢谢,不着急,我们这边还在熟悉框架中,如果补偿的时候,出现异常,存在未处理完成的事务,框架是否提供接口重试
from easytransaction.
框架自动会重试,但要手工重试的话(用于测试等场景、或者用于界面手动触发重试),可以参考 https://github.com/QNJR-GROUP/EasyTransaction/blob/master/easytrans-starter/src/test/java/com/yiqiniu/easytrans/test/FullTest.java 这里的一段代码,如下
List<LogCollection> unfinishedLogs = logReader.getUnfinishedLogs(null, 100, new Date());
for (LogCollection logCollection : unfinishedLogs) {
guardian.process(logCollection);
}
from easytransaction.
后来考虑了下,没有做成一个EasyTrans层次的Header配置,主要是因为不同底层RPC框架传输header形式不太一致,即使统一了也不见得能带来好处,因此只提供了修改 RestRibbon 下HttpHeader的方式,可以在SPRING中注入,EasyTransRpcConsumer,并强制转换为 RestRibbonEasyTransRpcConsumerImpl,这样可以调用方法
RestTemplate getLoadBalancedRestTemplate()
然后可以通过RestTemplate的interceptors来调整header
from easytransaction.
Related Issues (20)
- 有计划支持dubbo2.7吗? HOT 1
- 请问有具体的sample吗?感觉不容易上手使用?建议作者以后可以提供使用文档。谢谢。 HOT 1
- 对框架幂等疑问? HOT 2
- ons异步消息有非侵入式写法的demo吗?
- 建议
- TCC方案实现的话是否可以考虑下websocket HOT 1
- EtReliableMsgAnnotationBusinessProviderBuilder 和 EtBestEffortMsgAnnotationBusinessProviderBuilder执行consume,永远返回EasyTransConsumeAction.CommitMessage,这是不是有问题? HOT 1
- EasyTransMsgInitializer 消息消费,如果业务代码抛异常,框架代码空指针问题 HOT 1
- DatabaseSnowFlakeIdGenerator has something wrong? HOT 2
- HikariDataSource (HikariPool-1) is not DataSourceProxy, please correct the config! HOT 2
- 用tcc-and-fescar这个demo并发测试同一个请求,锁表fescar_lock主键冲突。 HOT 3
- Dependency conflicts on org.ow2.asm:asm, leading to invoking unexpected methods HOT 1
- 现在这个框架可以整合mybatis吗? HOT 1
- 请问下如果某个分支服务异常,但是使用kafka消息队列的服务不能回滚?请教下采用kafka消息队列的这个服务怎么才能回滚? HOT 2
- ET感觉太难入门了,希望出几篇文章介绍源码
- 同一个服务多个数据源事务一致性问题
- Demo
- 能否升级支持一下springboot 2.X
- 请教:这个EasyTransaction能够支持微软的SQL Server吗
- ET集成Seata AT模式时,EtDataSourceManager类获取不到DataSourceProxy
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from easytransaction.