WCF Load Balancing : An End To End Example For NetTcpBinding

You may also like...

3 Responses

  1. Ingi says:

    I’m looking into load balancing on nettcpbinding, so this article helps, but I have a question.

    Let say the lease timeout is 10 seconds, and in those 10 seconds 10.000 customers come in, won’t they all go to the same server? If so, then how is that load balancing? Maybe I’m misunderstanding this.

  2. Chuck says:

    Ingi,

    Your request is intercepted by the load balancer first. The issue with the lease timeout is that it creates a server "bias".

    The load balancer will redirect the new incoming requests to the server with the least load.

    – Chuck

  3. Richard says:

    Thanks for the example – but I have with the same configuration but I have to use HTTP. Problems? Also, as in IIS with SessionState that can be stored to a SQL server, does it work the same for WCF. Can you have perSession, and the associated state, stored to a SQL server? Or am I missing something – as the client would recreate the proxies when the web page returns.