Posted by: Cirilo Meggiolaro | 11/3/2008

Tip of the day #20 – Improve effectiveness during WCF load balancing (WSHttp and WSDualHttp Binding)

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.

How to…

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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: