New NetHttpBinding in 4.5 http://forums.asp.net/t/1733040.aspx/1?New+NetHttpBinding+in+4+5+Sun, 23 Oct 2011 12:38:02 -040017330404650775http://forums.asp.net/p/1733040/4650775.aspx/1?New+NetHttpBinding+in+4+5+New NetHttpBinding in 4.5 <p>I am currently using a custom binding in 4.0 to perform binary encoding over http but its performance is still far off our NetTCPBinding.</p> <p>I see there is a new NetHttpBinding for use in environments where both the clients and server are .Net based.&nbsp;&nbsp; Is this simply the NetHttpBinding sample that was included in .Net 4.0?&nbsp; &nbsp;Or are there any other performance improvements in it, beyond Binary Encoding?</p> <p></p> <p>Thanks</p> <p>Rich</p> 2011-10-23T10:20:40-04:004650811http://forums.asp.net/p/1733040/4650811.aspx/1?Re+New+NetHttpBinding+in+4+5+Re: New NetHttpBinding in 4.5 &lt;div&gt; <p>By default, if you use NetHttpBinding with a duplex contract it will actually use WebSockets (this only works on Windows 8). If you use it with a normal request-reply contract you'll get the equivalent of BasicHttpBinding with a binary encoder. You can override this behavior if you want to use WebSockets even for request-reply contracts (there is potential for a performance gain here).</p> <p>It sounds like you aren't working with duplex contracts and you will probably find that NetHttpBinding is equivalent to your custom binding unless you have the opportunity to get both endpoints upgraded to run on Windows 8 and use WebSockets.</p> &lt;/div&gt; 2011-10-23T11:42:38-04:004650850http://forums.asp.net/p/1733040/4650850.aspx/1?Re+New+NetHttpBinding+in+4+5+Re: New NetHttpBinding in 4.5 <p>Thanks.</p> <p>&nbsp;</p> <p></p> 2011-10-23T12:38:02-04:00