持久且可重复的命令
想象一下,我们想要在系统中完成一些事情,但有时在执行过程中会引发异常。我们希望向最终用户提供这些错误的报告,以便他们有机会修复问题的根源,然后然后重新调用导致错误的事物。
这显然意味着我们需要以一种允许存储、报告并最终重新执行或丢弃的方式捕获“事物”。
有人对实现这个有什么建议吗?
谢谢!
- 编辑-
我阅读了http://msdn。 microsoft.com/en-us/magazine/cc163920.aspx
现在我认为消息传递可能是可行的方法。我想知道大众交通或类似的交通是否有益或矫枉过正。我想深入研究 EDA 一段时间了,我认为这可能是一个方向。
Imagine that we have stuff we want done in the system and sometimes exceptions are raised while doing it. We want to give the end users a report of those errors so they have an opportunity to fix the root of the problem and then re-invoke the thing that caused the error.
This obviously means we need to capture the "thing" in a way that allows it to be stored, reported on, and ultimately re-executed or discarded.
Does anyone have any suggestions for implementing this?
Thanks!
- Edit -
I read http://msdn.microsoft.com/en-us/magazine/cc163920.aspx
Now I'm thinking messaging might be the way to go. I'm wondering if maybe MassTransit or the like would be beneficial or overkill. I've been wanting to delve into EDA for a while and am thinking this might be an in.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用命令模式:http://en.wikipedia.org/wiki/Command_pattern
Use a Command pattern: http://en.wikipedia.org/wiki/Command_pattern