问题登记。工作流程基础 4 中的持久双工和并行性
我有两个作为服务托管的工作流程,并且从工作流程 1 中,我通过持久双工调用另一个工作流程 2。工作流 1 向工作流 2 发送两个请求,创建两个实例并继续运行。当工作流 2 实例完成其工作时,它们会回调通过关联运行的同一工作流 1 实例。我的问题是,如果两个工作流程 2 实例同时调用工作流程 1 会发生什么。调用会以队列方式一一执行,还是同时在不同线程中执行?
I've two workflows hosted as services and from workflow-1 I'm invoking the other one workflow-2 through durable duplex. The workflow-1 sends two requests two workflow-2 creating two instances and keeps on running. When workflow-2 instances done with their job they call back the same workflow-1 instance that is running through correlation. My question is what happens if the two workflow-2 instances invoke the workflow-1 at the same time. Will the calls executed one by one in a queue fashion or they get executed in different threads at the same time?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
单个工作流实例不存在多线程执行。第二个调用将在收到时进行调度,并在调度程序到达后立即开始处理。
There is no multi threaded execution of a single workflow instance. The second call will be scheduled when it is received and start processing as soon as the scheduler gets to is.