开发者

Performance implications of turning MTOM on for a WCF service

开发者 https://www.devze.com 2022-12-11 09:20 出处:网络
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?What is your binding set to now?

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?


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.

0

精彩评论

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

关注公众号