Deepesh
Deepesh

Reputation: 5604

WCF Service Throttling

I have used TCP bindings in my WCF service and at a time it is possible that many people connect to this service, my question is does i need to do service throttling in my wcf service if yes then what is the ideal way to do it?

Upvotes: 1

Views: 539

Answers (2)

Drew Marsh
Drew Marsh

Reputation: 33379

The throttling provided out of the box by WCF is via the ServiceThrottlingBehavior. It is agnostic of the specific bindings you're using (i.e. tcp/http doesn't matter).

Upvotes: 2

Tad Donaghe
Tad Donaghe

Reputation: 6588

I think it depends on the situation: where/how the service is hosted, how it's accessed, etc.

There's no good single answer for your question.

Your service probably needs to be tested under expected loads and see how it handles. With that information you should be able to begin to come up with a throttling plan, if testing shows that it's needed.

Upvotes: 1

Related Questions