So the question is does WCF4 invokes client connection pooling to WCF-service? For instance, we have ASP .NET application as client and service (on separate machines). Then somewhere in code we have something like that:
ServiceClient client = new ServiceClient();
// Here some work with service goes...
Lets say we have another service invoke in anither piece of code:
ServceClient client2 = new ServiceClient();
// Another one processing...
So will client2 connection taken from connection pool?
The “pooling” is dependent on used transport protocol. For HTTP the WCF by default uses HTTP persistent connections which live for short period of time (they are closed after 100s of inactivity) and can be reused by subsequent requests (even from different proxy instance). For TCP and Named pipes WCF provides built-in pooling.