<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Silverlight Web Services Team : azure</title><link>http://blogs.msdn.com/silverlightws/archive/tags/azure/default.aspx</link><description>Tags: azure</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>PollingDuplex scaling in Windows Azure</title><link>http://blogs.msdn.com/silverlightws/archive/2009/11/24/pollingduplex-scaling-in-windows-azure.aspx</link><pubDate>Tue, 24 Nov 2009 19:58:58 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9928198</guid><dc:creator>SLWSTeam</dc:creator><slash:comments>0</slash:comments><comments>http://blogs.msdn.com/silverlightws/comments/9928198.aspx</comments><wfw:commentRss>http://blogs.msdn.com/silverlightws/commentrss.aspx?PostID=9928198</wfw:commentRss><description>&lt;p&gt;One of the great sessions at this year’s PDC talked about a collaboration between Invensys and Microsoft’s DPE team to build a solution that can deliver energy pricing information to a variety of clients, using a duplex message pattern. &lt;/p&gt;  &lt;p&gt;Effectively Invensys used a WCF service hosted in a Windows Azure web role to tunnel bi-directional HTTP traffic from the Windows Azure platform AppFabric service bus capability to Silverlight clients. Unfortunately this workaround is needed since the TCP-based relay binding that service bus offers is not supported in Silverlight at this point.&lt;/p&gt;  &lt;p&gt;Once Invensys was using PollingDuplex in Azure, they needed to scale to a large number of clients, so they needed to enable scale out between multiple web role instances. This capability is not available out-of-the-box in Silverlight 3, so some hackery was required, as described in these blog posts:&lt;/p&gt;  &lt;ul&gt;   &lt;li&gt;&lt;a href="http://tomasz.janczuk.org/2009/09/scale-out-of-silverlight-http-polling.html"&gt;Scale-out of Silverlight HTTP polling duplex WCF service in a web farm scenario&lt;/a&gt; &lt;/li&gt;    &lt;li&gt;&lt;a href="http://blogs.msdn.com/ales/archive/2009/09/22/scalable-duplex-messaging-with-silverlight-3-and-windows-azure.aspx"&gt;Scalable Duplex Messaging with Silverlight 3 and Windows Azure&lt;/a&gt; &lt;/li&gt; &lt;/ul&gt;  &lt;p&gt;The relevant content starts at around &lt;strong&gt;&lt;u&gt;minute 38&lt;/u&gt;&lt;/strong&gt; in the video below.&lt;/p&gt; &lt;object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="360"&gt; &lt;param name="source" value="http://microsoftpdc.com/Skins/PDC09/Styles/players/VideoPlayer2009_03_27.xap" /&gt; &lt;param name="initParams" value="m=http://ecn.channel9.msdn.com/o9/pdc09/wmv/SVC31.wmv,autostart=false,autohide=true,showembed=true, thumbnail=http://microsoftpdc.com/Skins/PDC09/Styles/images/DefaultPlayerBackground.png, postid=0" /&gt; &lt;param name="background" value="#00FFFFFF" /&gt; &lt;a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;"&gt; &lt;img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none" /&gt; &lt;/a&gt; &lt;/object&gt;  &lt;p&gt;&lt;strong&gt;While getting PollingDuplex to scale in Azure in Silverlight 3 requires some manual steps, the team is considering supporting this scenario out-of-the-box in Silverlight 4. It is not available in Silverlight 4 Beta, but please use the comments to submit your feedback.&lt;/strong&gt;&lt;/p&gt;  &lt;p&gt;Thanks,    &lt;br /&gt;Yavor Georgiev     &lt;br /&gt;Program Manager &lt;/p&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9928198" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/silverlightws/archive/tags/duplex/default.aspx">duplex</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/azure/default.aspx">azure</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/pdc/default.aspx">pdc</category></item><item><title>Using WCF services from Silverlight in Azure</title><link>http://blogs.msdn.com/silverlightws/archive/2009/04/08/using-wcf-services-from-silverlight-in-azure.aspx</link><pubDate>Thu, 09 Apr 2009 02:15:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9539140</guid><dc:creator>SLWSTeam</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/silverlightws/comments/9539140.aspx</comments><wfw:commentRss>http://blogs.msdn.com/silverlightws/commentrss.aspx?PostID=9539140</wfw:commentRss><description>&lt;P&gt;With all the buzz around &lt;A title="Windows Azure" href="http://www.microsoft.com/azure/windowsazure.mspx" mce_href="http://www.microsoft.com/azure/windowsazure.mspx"&gt;Windows Azure&lt;/A&gt;, you may have wondered how to host your Silverlight application in the cloud. Since Silverlight controls are essentially static content, hosting them is as easy as uploading some files to the cloud.&lt;/P&gt;
&lt;P&gt;When it comes to building WCF services to provide data to your Silverlight control, the story gets a little more complicated. The fact that the Azure cloud is a load-balanced environment as well as the deployment mechanism for setting up a service in Azure pose some unique challenges to hosting WCF services.&lt;/P&gt;
&lt;P&gt;To help with this, our team has posted &lt;A title="WCF Azure Code Gallery Site" href="http://code.msdn.com/wcfazure" mce_href="http://code.msdn.com/wcfazure"&gt;&lt;STRONG&gt;a Code Gallery site with 3 Silverlight-specific samples&lt;/STRONG&gt;&lt;/A&gt;&lt;STRONG&gt; &lt;/STRONG&gt;that you can run in the cloud and also on your local machine. The samples exercise the following features:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Sample #2: &lt;A title="Service using binary HTTP binding and Silverlight client" href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SilverlightCalculator&amp;amp;referringTitle=Home" mce_href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SilverlightCalculator&amp;amp;referringTitle=Home"&gt;binary encoding&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;Sample #4: &lt;A title="Service using binary HTTP binding with transport security and message credentials and Silverlight client" href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SecureCalculator&amp;amp;referringTitle=Home" mce_href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SecureCalculator&amp;amp;referringTitle=Home"&gt;message credentials authentication over HTTPS&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;Sample #5: &lt;A title="Chat service which can push data to Silverlight clients" href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SilverlightChat&amp;amp;referringTitle=Home" mce_href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=SilverlightChat&amp;amp;referringTitle=Home"&gt;duplex (server “push”)&lt;/A&gt; &lt;/LI&gt;&lt;/UL&gt;The third example hosts our &lt;A title="Silverlight Duplex Chat" href="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=silverlightws&amp;amp;DownloadId=5150" mce_href="http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=silverlightws&amp;amp;DownloadId=5150"&gt;chat sample&lt;/A&gt; in Azure for a &lt;STRONG&gt;massively-distributed free-for-all chat experience&lt;/STRONG&gt;, and you can &lt;A title="Silverlight Duplex Chat Demo" href="http://wcfazure.cloudapp.net/SilverlightChat/SilverlightClientTestPage.html" mce_href="http://wcfazure.cloudapp.net/SilverlightChat/SilverlightClientTestPage.html"&gt;try it here&lt;/A&gt;. Try opening up this link across multiple machines and browsers and watch them all chat together. 
&lt;P&gt;Which brings me to probably the most useful thing we published: a &lt;STRONG&gt;list of known issues with hosting WCF services and Silverlight clients&lt;/STRONG&gt; in Azure. Check out &lt;A title="WCF Azure Known Issues" href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=KnownIssues&amp;amp;referringTitle=Home" mce_href="http://code.msdn.microsoft.com/wcfazure/Wiki/View.aspx?title=KnownIssues&amp;amp;referringTitle=Home"&gt;this page&lt;/A&gt;, and especially the sections “Hosting WCF Services” and “Hosting Silverlight Clients”. The page contains some workarounds we gathered from across the web, and is guaranteed to save you a bunch of head-scratching if you try WCF on Azure for yourself.&lt;/P&gt;
&lt;P&gt;Cheers, &lt;BR&gt;-Yavor&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9539140" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/silverlightws/archive/tags/wcf/default.aspx">wcf</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/silverlight/default.aspx">silverlight</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/samples/default.aspx">samples</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/duplex/default.aspx">duplex</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/binary/default.aspx">binary</category><category domain="http://blogs.msdn.com/silverlightws/archive/tags/azure/default.aspx">azure</category></item></channel></rss>