我的项目有一个netTCP WCF服务.这是它的app.config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.serviceModel>
<bindings>
<netTcpBinding>
<binding name="NetTcpBinding_IIndexer" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"
hostNameComparisonMode="StrongWildcard" listenBacklog="10"
maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"
maxReceivedMessageSize="65536">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="None">
<transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />
<message clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
<client>
<endpoint address="net.tcp://mach1:9000/Indexer" binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_IIndexer" contract="in.IIndexer"
name="NetTcpBinding_IIndexer" />
</client>
</system.serviceModel>
</configuration>
Run Code Online (Sandbox Code Playgroud)
是否有任何可以做的事情来最大限度地压缩通过线路发送的数据?我的项目是内部的,因此速度和处理能力基本上没有问题.
压缩从客户端发送到WCF服务的数据有哪些好的提示和技巧?