Alex Rivera | Logout

How does Concurrency work in WCF?

Asked 2010-09-07T10:39:46.607
14

I am a novice in WCF and SOA. I am just starting out on these, I have a theoretical doubt:

Client A has called a service and the logic is currently executing on the server. While the logic is executing, another call from Client B comes in for the same service.

At this point what happens to the logic that is being executed for Client A? How does the service manage to serve both the requests?

Edit
Report

1 Answer

1

You can control the concurrency using the ConcurrencyMode and control how new connections are handled via InstanceContextMode - this is the Microsoft documentation.

The number of concurrent connections can also be throttled - have a look at the serviceThrottling element in the your WCF Config.

answered 2010-09-07T10:48:33.027

Your Answer