Is there a way to reduce the bandwidth accepted by WCF?

I am new to WCF; I am developing a client server application, and my goal is to execute some server-side logic every second.

I made a small client for my WCF service using NetTcpBinding, because it is the most optimized way from the BW point of view (I understand), since it uses binary encoding?

After a short trace using TracePlus, I found that when I call one function that takes no parameter and returns an int value, the size of the data sent from the client to the server is 400 bytes!

Is there any way to reduce this size? and if not, does it mean that I have to develop my application using my own sockets? (BW is an important issue in my case)

PS

Is 400 bytes a valid size for a call method with no arguments?

+3
source share
1 answer

You can always create your own transport / WCF binding. Did you disable all unnecessary features in NetTcpBinding (for example, security) when measuring 400 bytes?

+1
source

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


All Articles