.net - Will using MTOM for small size xml data affect performance? -
i have few services hosted on server. 1 service transfers zip file client ~2kb. 1 transmits xml representation of dataset ~ 10kb. others transfer small amounts data ~<1kb. file transfer service , data set service potentially grow in size in future.
will harm if use 1 binding 3 of these services 1 binding using mtom encoding? wcf/mtom smart enough know when optimize?
if mtom enabled, wcf won't use unless message being sent on size. yes, can enable without impacting small messages. haven't found documentation says size is.
it's worth noting mtom applies binary data (ie: byte array). if you're returning class gets xml serialized instead, mtom unlikely you. in experience returning array of 1000 of custom class still sent xml text. you're returning i'm not sure you'll gain anything. marc gravell's answer talks how around turning dataset byte array.
Comments
Post a Comment