使用 Workflow Foundation 的性能影响

发布于 2024-07-07 21:17:16 字数 81 浏览 5 评论 0原文

我意识到这是一个非常普遍的问题,但我想知道在相当大的企业系统中使用 WF 相反命令式代码实现业务逻辑对性能的影响。 我想听听其他人在这方面的经验。

I realize this is a quite general question, but I am wondering about the performance impact of implementing business logic with WF contra imperative code in fairly large enterprise system. I would like to hear others experiences in this regard.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

谜兔 2024-07-14 21:17:16

您可以查看Windows Workflow Foundation 的性能特征,了解关键性能注意事项和建模在 Windows Workflow Foundation 上开发应用程序时非常重要的指南。

不过,我建议等待 PDC 上的 WF 4.0 公告(10 月底),因为 他们很有希望

显着改进
性能和可扩展性
(十倍
性能提升)


编辑(PDC 之后,2008 年 11 月 11 日):

好的,虽然 Kenny Wolf 在演讲中表示,从执行速度到持久性大小,性能提高了 10-100 倍。

此外,Rick Garibay 还发布了一些与 Kenny Wolf 的演讲后讨论

我的第一个问题是关于
推动如此重大的改革。
肯尼分享说他们非常专注,
非常深入地了解关键客户的要求
以及基于早期的机会
框架的版本。 有
最能引起共鸣的 3 种功能类型。
首先,是提供一个真正的
基于模型的框架允许
WF的各个方面
声明性地表示。 其次,是
能够真正参与到
存储库生态系统,这是关键
部署、管理和运营
场景。 最后但并非最不重要的是
性能。

肯尼在演讲的早些时候引用了
有趣的改进,包括 10 倍
性能提升 100 倍
持续的工作流程成为
WF 4.0 本质上是“免费”的。 在我们的
在他之后进行了更多的一对一讨论
说话时,他用了摇摆的比喻
在一个带有木制棒球的棒球场
蝙蝠。 虽然木制棒球棒是
有效,感觉有点重,如果
有时并不笨重。 当你接起时
铝制棒球棒,它是
明显更轻,感觉
明显更具空气动力学性能。 WF 3.0
和 3.5 可以工作,但 WF 4 是一个新的
改进的铝制棒球棒。

You can check Performance Characteristics of Windows Workflow Foundation for key performance considerations and modeling guidelines that are important when developing applications on top of the Windows Workflow Foundation.

However I would suggest to wait for the WF 4.0 announcement at PDC (end of October) since they are promising

Significant improvements in
performance and scalability
(Ten-fold
improvement in performance)


EDIT (after PDC, 11Nov08):

OK, not much revealed about performance at PDC, although Kenny Wolf said in his talk that there are 10-100X performance improvements from execution speed to persistence sizes.

Moreover, Rick Garibay posted some post-talk discussions with Kenny Wolf here. I am copying a relevant passage:

My first question was around the
impetus for such a major overhaul.
Kenny shared that they focused very,
very deeply on key customer requests
and opportunities based on earlier
versions of the framework. There were
3 feature types that resonated most.
First, is delivering a truly
model-based framework that allows
every aspect of the WF to be
represented declaratively. Second, was
being able to truly participate in the
repository ecosystem, which is key for
deployment, management and operations
scenarios. And last, but not least was
performance.

Earlier in his talk, Kenny cited
intriguing improvements, including 10x
to 100x performance improvements and
persisted workflows becoming
essentially "free" with WF 4.0. In our
more one-on-one discussion after his
talk, he used the analogy of swinging
at a baseball with a wooden baseball
bat. While the wooden baseball bat is
effective, it feels a bit heavy, if
not clunky at times. When you pick up
an aluminum baseball bat, it is
markedly lighter, and feels
significantly more aerodynamic. WF 3.0
and 3.5 work, but WF 4 is a new and
improved aluminum baseball bat.

过度放纵 2024-07-14 21:17:16

我曾经做过一些关于 WF 性能的基准测试。 事实证明“声明条件”相当慢。 我相信这是由于在这个过程中进行了很多反思。

I once did some benchmark about WF performance. It turns out that "declarative condition" is pretty slow. I believe that it is due to a lot of reflection is done in the process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文