为 WCF 服务打开 MTOM 的性能影响

发布于 2024-08-10 00:04:39 字数 57 浏览 2 评论 0原文

如果为实际上并未通过网络传输任何二进制文件的 WCF 服务打开 MTOM,是否会对性能产生明显影响?

Would there be any noticeable performance hit if MTOM is turned on for a WCF service that isn't actually transferring any binary over the wire?

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

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

发布评论

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

评论(1

尴尬癌患者 2024-08-17 00:04:39

您现在的绑定设置是什么?
MTOM 比文本快(如果发送二进制文件),但比二进制慢。

  • 当消息需要可读时选择文本
  • 选择使用 wcf 到 wcf 通信的二进制文件
  • 当您有二进制文件要发送并且存在互操作性问题时选择 mtom

您声明您没有二进制数据,在这种情况下 MTOM 将比文本慢!它需要将数据打包到 MIME 文档中,这需要时间。

问候,

M.

What is your binding set to now?
MTOM is faster than text (if binaries are sent), but slower than binary.

  • choose text when the messages need to be readable
  • choose binary with wcf to wcf communication
  • choose mtom when you have binaries to send and have interoperability issues

You stated you have no binary data, in that case MTOM will be slower than text! It needs to pack the data into a MIME-document, and that takes time.

Regards,

M.

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