Saturday, October 16, 2010

Guidelines for Configuring the Transport Layer: (WCF Part 9)


NATs and Firewalls:
Firewalls and Network Address Translators (NATs) may make it impossible to use duplex contracts, since NATs hide IP addresses. Firewalls commonly restrict the protocols and ports that can be used, and this may restrict services to using HTTP or HTTPS as a transport.

Streaming Message Transfer:
By default, entire messages are buffered in memory by WCF transports. However, you can eliminate the need for large memory buffers by exposing the message body as a stream.

Unidirectional or bidirectional streaming is enabled through the TransferMode property of the transport binding element.

Note that there are some restrictions on the use of streaming, especially when using certain WCF features, such as reliable messaging, transactions, and SOAP security, which may require buffering.

Transport Quotas:
Transport quotas should be used to ensure that connections do not consume excessive resources.

WCF supports two main types of quota: timeouts to guard against denial of service attacks and allocation limits to guard against excessive memory use.

  For More Info Please Visit: WCF Resources Page  

No comments:

Post a Comment

Search This Blog