WCF NetTcpBinding Buffered vs Streamed performance problems
- by DxCK
I wrote a WCF service that should transform any size of files, using the Streamed TransferMode in NetTcpBinding, and System.IO.Stream object.
When running performance test, i found significant performance problem.
Then I decided to test it with Buffered TransferMode and saw that performance is two times faster!
Because my service should transfer big files, i just can't stay in Buffered TransferMode because of memory management overhead on big files at the server and client side together.
Why is Streamed TransferMode slower than the Buffered TransferMode?
What can i do to make Stremed performance better?