积极答复者
Sub Orchestration 太多会影响性能吗?

问题
答案
-
至于是否有性能变化取决于如何调用sub orchestrations.
使用Call Orchestration:同步执行子orchestration,父子orchestration在同一个线程内执行,既没有明显的性能开销也没有性能提升
使用Start Orcehstration:异步执行子orchestration,这是通过消息发布订阅实现的,这种适用方法可能提高性能也可能导致性能下降,性能提高的可能性在于你可以通过将父子orchestration绑定到不同host从而实现scale out,但是这样做是有代价的,orchestration的性能调优地主要着眼点就是如何减少persistence point,而start orchestration就是一个persistence point,不当使用start orchestration可能导致性能显著下降.因此这里并没有简单的答案,你需要做的是通过性能测试来观测scale out父子orchestrations所带来的性能提升是否能够超过增加额外persistence points所带来的性能开销.
This posting is provided "AS IS" with no warranties, and confers no rights.- 已标记为答案 GaryZhang 2009年12月23日 9:52
全部回复
-
至于是否有性能变化取决于如何调用sub orchestrations.
使用Call Orchestration:同步执行子orchestration,父子orchestration在同一个线程内执行,既没有明显的性能开销也没有性能提升
使用Start Orcehstration:异步执行子orchestration,这是通过消息发布订阅实现的,这种适用方法可能提高性能也可能导致性能下降,性能提高的可能性在于你可以通过将父子orchestration绑定到不同host从而实现scale out,但是这样做是有代价的,orchestration的性能调优地主要着眼点就是如何减少persistence point,而start orchestration就是一个persistence point,不当使用start orchestration可能导致性能显著下降.因此这里并没有简单的答案,你需要做的是通过性能测试来观测scale out父子orchestrations所带来的性能提升是否能够超过增加额外persistence points所带来的性能开销.
This posting is provided "AS IS" with no warranties, and confers no rights.- 已标记为答案 GaryZhang 2009年12月23日 9:52