Transmitting the least amount of data over the wire with WCF

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

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



    

        
4条回答
  •  我在风中等你
    2021-01-03 15:35

    The message encoding specified by the binding will determine how your data gets turned into bytes on the wire. For the NetTcpBinding, it will automatically use binary encoding which gives you the most compact representation of your message out of all the built-in WCF encoders.

    For more information, I would recommend these resources:

    1. Zulfiqar Ahmed: SOAP message size optimization: Encoding vs compression
    2. Kenny Wolf: Performance Characteristics of WCF Encoders
    3. MSDN: Choosing a Message Encoder

提交回复
热议问题