WCF 4.5
support for true asynchronous streaming. Let see what is mean by true
asynchronous streaming
- In previous version, When WCF service is
sending streamed messages to multiple clients. Service will be block its
thread to transfer to next client till the slow client is received the
message.
- But in case of WCF4.5, service does not
block one thread per client anymore and will free up the thread to service
another client
Enabling asynchronous streaming
In previous
versions of WCF when receiving a message for an IIS-hosted service that used
streaming message transfer, ASP.NET would buffer the entire message before
sending it to WCF. This would cause large memory consumption.
- This buffering has been removed in .NET
4.5 and now IIS-hosted WCF services can start processing the incoming
stream before the entire message has been received, thereby enabling true
streaming.
Generating
a Single WSDL Document
In WCF 4.0 and lower version, generated WSDL file does
not contain all metadata information in single file. WSDL file will refer the
other document using ‘import’ statement as shown below. So when third party try
to consume the service using WSDL has to explicitly add these references.
In WCF 4.5, service provide two option to create the WSDL , we can create WSDL information in single file
Web Socket Support
Web Socket is a web technology providing dbi
directional communications channels over a single TCP connection.
Web Socket is designed to be implemented in web
browsers and web servers, but it can be used by any client or server
application. The Web Socket Protocol is an independent TCP-based protocol.
Two new bindings are added in WCF4.5 to support
communication over Web Socket. NetHttpBinding NetHttpsBinding
No comments:
Post a Comment