开发者

Orchestration are single threaded?

开发者 https://www.devze.com 2023-02-06 19:15 出处:网络
Can anyone confirm if a BizTalk orchestration is executed on a single开发者_StackOverflow中文版 thread? or multiple? During dehydration/resuming, would BizTalk engine create new thread or suspend/awak

Can anyone confirm if a BizTalk orchestration is executed on a single开发者_StackOverflow中文版 thread? or multiple? During dehydration/resuming, would BizTalk engine create new thread or suspend/awake the same thread. I'm thinking of using Thread Context to store a unique request Id, that will be used to group activity logs in database

Thanks


Your only guarantee is that a single shape will be executed in a single thread without interruption. The next shape might be executed on a different thread, a different processor or even a different machine!

So using ThreadContext to store data between different shapes is definitely a bad idea. There is a reason why Orchestration variables exist and why they must be serializable!

If you want to group your activity logs, use the Orchestration Instance ID, which is guaranteed to stay the same over the lifetime of the orchestration.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号