540 likes | 689 Views
Gaming across Multiple Devices. Cloudshow. Patric Boscolo Developer Evangelist Microsoft Deutschland GmbH patbosc@microsoft.com http://blogs.msdn.com/patricb @ patricsmsdn. Tom Wendel Developer Evangelist Microsoft Deutschland GmbH twendel@microsoft.com
E N D
Gaming across Multiple Devices Cloudshow Patric Boscolo Developer Evangelist Microsoft Deutschland GmbH patbosc@microsoft.com http://blogs.msdn.com/patricb @patricsmsdn Tom Wendel Developer Evangelist Microsoft Deutschland GmbH twendel@microsoft.com http://blogs.msdn.com/twendel/@bobstriker
12:38 Wetalkabout … Agenda
What is Windows Azure? Cloud Services Developer Resources Templates, Deployment Tools, SDK‘s, Emulators, … Runtime, Storage, Database, Messaging, Identity, Caching, …
Maintanance in the Cloud Your Application Access to the Cloud Compute, Storage, Database, Messaging, Identity, Caching, … Your Application
Motivation 12:38 Logic
Microsoft Data Center Dublin http://blogs.technet.com/b/msdatacenters/archive/2009/12/18/microsoft-receives-leaders-award-for-innovation-in-the-mega-data-centre.aspx http://www.microsoft.com/presspass/emea/presscentre/pressreleases/DublinDataCentrePR_240909.mspx http://www.sustenergy.org/index.php?option=com_see_projectview&view=see_projectdetail&tagId=-1&countryID=-1&catId=-1&pageNum=0&projectid=2524 http://re.jrc.ec.europa.eu/energyefficiency/pdf/CoC%20DC%20new%20rep%20form%20and%20guidelines/Best%20Practices%20v2.0.0%20-%20Release.pdf http://blogs.msdn.com/b/msenterprise/archive/2011/04/22/earth-day-2011-cloud-computing-can-it-help.aspx
Industry PUE 2.4 Microsoft Global PUE 1.6 Dublin PUE 1.25
PUE 1.06
Memory Management Device Management Process Management Hypervisor Hypervisor
Fabric Controller Host Windows Azure Operating System Hypervisor
Fabric Controller Host Windows Azure Operating System Hypervisor
Remote Desktop Demo
BACK TO YOUR APP
Web Role IIS hosted application Worker Role arbitrary application Runtime VM Role selfconfigured virtual machine
How to get started My First Cloudapp
It’s not about Availability Quelle: http://www.flickr.com/photos/32975477@N02/4566833793/
How does my App scale?
There is no place like 127.0.0.1
There is no place like Production
vertical vs. horizontal scale vertical == more resources horizontal == more instances
Lessons learned… A few tipps by successfull apps
Raidgate Showcase
AntMe! Showcase
Table Queue Blob
A Bugs life? Website Sim Manager Sim Tables Sim Queue Webservices Simulator Simulator Simulator Replay Blobs Simulator
Different States Statless vs. Statefull Apps Loadbalancer Instance 1 Instance 2 http://myapp.cloudapp.net
SQL Azure / Table Storage Windows Azure Caching
Fantasy Kingdom Showcase
Saudos Showcase
Browser / Control Webpage Frontend WebClient Json via MVC Proxy WCF Context oData WebClient CDN Logic Socket Socket Context Table SQL
Browser / Control Webpage Frontend Json via MVC Json Client WCF oData WebClient CDN Logic Socket Socket Context Table SQL
Content Delivery Network (CDN) Blob Storage Blob header determines time-to-live at the edge DNS name resolves to closest POP Public Container Prop. “hops” oder “poor links” Less hops CDN Closest Point of Presence X X
Content Delivery Network (CDN) • 24 global distributed CDNs (99.95% availability) • Setup a CDN via Management Portal • Generate 2 URLs fordiffrentdistributions • Direct Access:http://myacct.blob.core.windows.net/images/myimage.jpg • Access via CDN:http://azXXXX.vo.msecnd.net/images/myimage.jpg • CNAME Mappingsfor CDN URLshttp://blog.smarx.com/posts/using-the-new-windows-azure-cdn-with-a-custom-domain • CDN forWebAppsand Windows Azure Storage • CSS, Images, ... • Smooth streamingavailableas CTP
Lifetime of CDN Content • Per Default Content stays alive for 72h • Setup TTL via „cache control header“x-ms-blob-cache-control: public, max-age=<value in seconds> • hours, days, weeks • longer remaining objects reduces: • costs, latency, other caches • Usage of versioned URIs to change Content
Superawesome WebApp Versioning of URLs http://myapp.cloudapp.net … <imgsrc="http://azXXXX.vo.msecnd.net/images/logo.2011-09-16.png" /> … … <imgsrc="http://azXXXX.vo.msecnd.net/images/logo.2011-11-22.png" /> … CDN logo.2011-09-16.png logo.2011-09-16.png logo.2011-11-22.png logo.2011-11-22.png • Easy to manage Rollback and different Versions • Enables A/B Tests
CDN für Web Apps • CDN supportfor Websiteshttp://blog.smarx.com/posts/using-the-windows-azure-cdn-for-your-web-application • Default URL: http://foo.cloudapp.net/default.aspx • CDN URL: http://azXXXX.vo.msecnd.net/default.aspx • Cached from: http://foo.cloudapp.net/cdn/default.aspx • CNAME & HTTPS support • Important! The „cache control headers“ must beedited in ordertousetheOutputCache Module via Webappshttp://blogs.msdn.com/b/scicoria/archive/2011/07/10/hosted-service-as-a-windows-azure-cdn-origin-tips.aspx