Compress all traffic in WCF

We have a couple of WCF (data) services. Since some of our customers connect to these services through a terrible network connection, we would like to assure that ALL traffic is compressed. So, we would like to compress each request and response to the server automatically .

We are using IIS 8 right now and .NET 4+ .

How can we do this in the most natural way? (Through XML configuration, etc.)

+4
source share
1 answer

.NET 4.5 introduces GZIP compression out of the box http://msdn.microsoft.com/en-us/library/aa751889.aspx

See CompressionFormat Values

+5
source

Source: https://habr.com/ru/post/1444090/


All Articles