The tip of the day #18 explained how to improve the use of load balancing with WCF when using BasicHttpBinding. Now, let’s check how to use load balancing with WSHttp and WSDualHttp binding.
The property EstablishSecurityContext, when set to true requires a secure conversation between the service and client application by exchanging a security token that brings some drawbacks when using load balancing. So, turn the property off.
WSHttpBinding myBinding = new WSHttpBinding();
myBinding.Security.Message.EstablishSecurityContext = false;
To enable security sessions, the conversation must use stateful security context token. This is out of scope of this tip but you can get more information clicking here.