Jul 16, 2007

WCF throttling and DoS prevention

To enable restrictions on the number of clients and the load they place on a WCF service the following options are available:
- limit the maximum number of concurrent sessions
- limit the number of concurrent calls
- limit the maximum number of concurrent instances
This is available in service haviour settings.

Furthermore there is TransportBindingElement.MaxReceivedMessageSize that
- limit the maximum received payload. This defaults to 64kB.

As Nicholas Allen points out there are even more settings possible, e.g. with Transport Quotas.

No comments:

Post a Comment