Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAGA模式怎么确保逆向操作一定成功? #18

Closed
panyox opened this issue Aug 23, 2021 · 3 comments
Closed

SAGA模式怎么确保逆向操作一定成功? #18

panyox opened this issue Aug 23, 2021 · 3 comments
Labels
question Further information is requested

Comments

@panyox
Copy link

panyox commented Aug 23, 2021

No description provided.

@yedf2
Copy link
Contributor

yedf2 commented Aug 23, 2021

按照saga模式的协议,逆向是不允许失败的,如果应用程序返回失败,那么就是出现bug了。
dtm会不断重试,直到saga的逆向返回成功。
为了避免程序bug导致逆向一直不成功,建议开发者对全局事务表进行监控,发现重试超过3次的事务,发出报警,由运维人员找开发手动处理

@XIELongDragon
Copy link

XIELongDragon commented Sep 16, 2021

按照saga模式的协议,逆向是不允许失败的,如果应用程序返回失败,那么就是出现bug了。
dtm会不断重试,直到saga的逆向返回成功。
为了避免程序bug导致逆向一直不成功,建议开发者对全局事务表进行监控,发现重试超过3次的事务,发出报警,由运维人员找开发手动处理

如果这样,那建议DTM服务器提供metric接口,便于接入Prometheus, grafana等进行自动监控和报警

@wz14 wz14 mentioned this issue Sep 24, 2021
@yedf2
Copy link
Contributor

yedf2 commented Sep 26, 2021

按照saga模式的协议,逆向是不允许失败的,如果应用程序返回失败,那么就是出现bug了。
dtm会不断重试,直到saga的逆向返回成功。
为了避免程序bug导致逆向一直不成功,建议开发者对全局事务表进行监控,发现重试超过3次的事务,发出报警,由运维人员找开发手动处理

如果这样,那建议DTM服务器提供metric接口,便于接入Prometheus, grafana等进行自动监控和报警

@XIELongDragon 已添加Prometheus监控,在端口8889下的/api/metrics

@li-xiao-shuang li-xiao-shuang added the question Further information is requested label Nov 22, 2021
@yedf2 yedf2 closed this as completed Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants