Performance implications of turning MTOM on for a WCF service
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.
精彩评论