Updating the steps in Saga

ε祈祈猫儿з 提交于 2019-12-25 12:33:07

问题


I am looking for a way to change the steps in the saga, example: insert a step during the processing, preferablly during runtime

Is it possible to do using sagas?


回答1:


Sagas (particularly those written using Automatonymous) were not designed to handle dynamic configuration at runtime. They are a codified way to create process monitors and workflows.

If you need to dynamically modify the steps of a workflow, you could use the Courier routing slip, which is built into MassTransit. It allows an activity in the workflow to revise the itinerary, adding or removing steps (activities) as needed.



来源:https://stackoverflow.com/questions/33344293/updating-the-steps-in-saga

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!