Transmitting the least amount of data over the wire with WCF

前端 未结 4 602
迷失自我
迷失自我 2021-01-03 14:56

My project has a netTCP WCF service. This is the app.config for it:



    

        
4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-03 15:43

    It depends upon the sort of data that you're sending, but if you're using serialization to create the data, then serializing to XML and compressing that with a GZipStream can result in fewer bytes than compressing the data generated by a binary serialization.

提交回复
热议问题