Posted by: Cirilo Meggiolaro | 11/1/2008

Tip of the day #18 – Improve effectiveness during WCF load balancing (BasicHttpBinding)

WCF services can be load balanced without hard work but some best practices will help your application optimize the usage of load balance resources.

When using BasicHTTPBinding the HTTP Header with value Keep-Alive is sent by default causing drawbacks and reducing the load balance effectiveness because the server may reuse connections and keep some client applications using the same server instead of distribute between servers.

How to…

To disable Keep-Alive property you may create a custom binding for httpbinding and set the keepAliveEnabled property equals false on your client configuration file as following:

<binding name=HttpBindingkeepAliveEnabled=False/>


Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s


%d bloggers like this: