Dispongo di un servizio Web WCF ospitato in un ambiente con bilanciamento del carico. Non ho bisogno di alcuna funzionalità relativa alla sessione WCF nel servizio.
QUESTION
Quali sono gli scenari in cui le prestazioni saranno migliori se
-
keepAliveEnabled = false
-
keepAliveEnabled = true
Riferimento
By default, the BasicHttpBinding sends a connection HTTP header in messages with a Keep-Alive value, which enables clients to establish persistent connections to the services that support them. This configuration offers enhanced throughput because previously established connections can be reused to send subsequent messages to the same server. However, connection reuse may cause clients to become strongly associated to a specific server within the load-balanced farm, which reduces the effectiveness of round-robin load balancing. If this behavior is undesirable, HTTP Keep-Alive can be disabled on the server using the KeepAliveEnabled property with a CustomBinding or user-defined Binding.