Silverlight TV episode about Duplex communication with WCF in Silverlight is beginning to air today. In this episode I am showing how to implement duplex communication with WCF using HTTP polling duplex protocol, as well as discuss aspects of the net.tcp protocol. If you want to find out more about the technologies I used to build the Silverlight-based chat application in this short video, you may want to check out the following resources:
- Pub/sub sample using HTTP polling duplex channel in Microsoft Silverlight contains the source code of a more elaborate version of the chat application, and walks through key design points.
- Scale-out of HTTP polling duplex WCF service discusses the challenges and approaches to scaling out a WCF service exposed over the HTTP polling duplex binding to a large number of clients.
- Pub/sub sample using the net.tcp channel in Microsoft Silverlight builds up on the tired chat example to show how a Silverlight client can seamlessly switch between HTTP polling duplex and net.tcp protocol added in Silverlight 4, and explains some of the trade-offs between these protocols.
- WCF net.tcp protocol in Silverlight 4 provides more background information about the protocol in the context of Silverlight.
- Comparison of net.tcp and HTTP polling duplex performance provides an insight into and helps set expectations related to relative performance of the two protocols in various circumstances.
- The Silverlight Web Services Team blog contains a wealth of information about WCF and communication in Silverlight in general.
I hope you enjoy the video. Make sure to check out other Silverlight TV episodes as well.