Gaming across multiple devices

54
Gaming across Multiple Devices Patric Boscolo Developer Evangelist Microsoft Deutschland GmbH [email protected] http://blogs.msdn.com/patricb @patricsmsdn Tom Wendel Developer Evangelist Microsoft Deutschland GmbH [email protected] http://blogs.msdn.com/twendel/ @bobstriker Cloudshow

description

Introduction to Microsoft Windows Azure and the Microsoft Cloud Services for Game Developers.http://europe.casualconnect.org/content.html

Transcript of Gaming across multiple devices

Page 1: Gaming across multiple devices

Gaming across Multiple Devices

Patric BoscoloDeveloper EvangelistMicrosoft Deutschland [email protected]://blogs.msdn.com/patricb

@patricsmsdn

Tom WendelDeveloper EvangelistMicrosoft Deutschland [email protected]

http://blogs.msdn.com/twendel/

@bobstriker

Cloudshow

Page 2: Gaming across multiple devices
Page 3: Gaming across multiple devices

AGENDAWe talk about …

12:38

Page 4: Gaming across multiple devices

?

Page 5: Gaming across multiple devices

= Managed for You StandaloneServers

IaaS PaaS SaaS

Applications

Runtimes

Database

Operating System

Virtualization

Server

Storage

Networking

Page 6: Gaming across multiple devices

Cloud Services

Runtime, Storage, Database, Messaging, Identity, Caching, …

Developer Resources

Templates, Deployment Tools, SDK‘s, Emulators, …

What is Windows Azure?

Page 7: Gaming across multiple devices

Runtime, Storage, Database, Messaging, Identity, Caching, …

Your Application

Your Application

Maintanance in the Cloud

Access to the Cloud

Page 8: Gaming across multiple devices

Motivation

12:38

Logic

Page 9: Gaming across multiple devices
Page 10: Gaming across multiple devices

Hardware

Page 11: Gaming across multiple devices

http://re.jrc.ec.europa.eu/energyefficiency/pdf/CoC%20DC%20new%20rep%20form%20and%20guidelines/Best%20Practices%20v2.0.0%20-%20Release.pdf

http://www.sustenergy.org/index.php?option=com_see_projectview&view=see_projectdetail&tagId=-1&countryID=-1&catId=-1&pageNum=0&projectid=2524

http://www.microsoft.com/presspass/emea/presscentre/pressreleases/DublinDataCentrePR_240909.mspx

http://blogs.technet.com/b/msdatacenters/archive/2009/12/18/microsoft-receives-leaders-award-for-innovation-in-the-mega-data-centre.aspx

Microsoft Data Center Dublin

http://blogs.msdn.com/b/msenterprise/archive/2011/04/22/earth-day-2011-cloud-computing-can-it-help.aspx

Page 12: Gaming across multiple devices

Colocation

Page 13: Gaming across multiple devices
Page 14: Gaming across multiple devices
Page 15: Gaming across multiple devices

IndustryPUE 2.4

Microsoft GlobalPUE 1.6

DublinPUE 1.25

Page 16: Gaming across multiple devices

IT Equipment50%

Light3%

Power Supply,

UPS10%

Air Transport12%

Cooling25%

Costs

Page 17: Gaming across multiple devices
Page 18: Gaming across multiple devices
Page 19: Gaming across multiple devices

PUE1.06

Page 20: Gaming across multiple devices
Page 21: Gaming across multiple devices

Process Management

Memory Management

Device Management

Hypervisor Hypervisor

Page 22: Gaming across multiple devices

Hypervisor

Windows Azure Operating System

Fabric Controller Host

Page 23: Gaming across multiple devices

Hypervisor

Windows Azure Operating System

Fabric Controller Host

Page 24: Gaming across multiple devices

BACK TO

YOUR

APP

Page 25: Gaming across multiple devices

Web RoleIIS hosted application

Worker Rolearbitrary application

VM Roleselfconfigured virtual machine

Runtime

Page 26: Gaming across multiple devices

MY FIRST CLOUD APPDeploy to Azure

Page 27: Gaming across multiple devices

It’s not aboutAvailability

Quelle: http://www.flickr.com/photos/32975477@N02/4566833793/

Page 28: Gaming across multiple devices

How does my Appscale?

Page 29: Gaming across multiple devices

There is no place like

127.0.0.1

Page 30: Gaming across multiple devices

There is no place like

Production

Page 31: Gaming across multiple devices

vertical vs. horizontal scale

vertical == more resources horizontal == more instances

Page 32: Gaming across multiple devices

Meine Superawesome Webseitehttp://myapp.cloudapp.netMeine Superawesome Webseite

http://myapp.cloudapp.netMeine Superawesome Webseitehttp://myapp.cloudapp.net

n Webroles1 Database

Scale me too!!! ;-)

• It‘s better to have 50 times 1GB db, then a single 50GB db.• How to scale a db?

• Partitioning• Alpha• User• Usage• Date

Page 33: Gaming across multiple devices
Page 34: Gaming across multiple devices

A FEW TIPPS BY SUCCESSFULL APPSLessons learned…

Page 35: Gaming across multiple devices

SHOWCASERaidgate

Page 36: Gaming across multiple devices

SHOWCASEAntMe!

Page 37: Gaming across multiple devices

Table Queue Blob

Page 38: Gaming across multiple devices

A Bugs life?

Webservices

Sim Manager

SimulatorSimulatorSimulatorSimulator

Website

Replay Blobs

Sim QueueSim Tables

Page 39: Gaming across multiple devices

Statless vs. Statefull Apps

http://myapp.cloudapp.net

LoadbalancerInstance 1

Instance 2

Different States

Page 40: Gaming across multiple devices

SQL Azure / Table Storage

Windows AzureCaching

Page 41: Gaming across multiple devices

SHOWCASEFantasy Kingdom

Page 42: Gaming across multiple devices

SHOWCASESaudos

Page 43: Gaming across multiple devices

Table SQL

Context

Logic

Webpage

CDN

oData

WCF

Json via MVC

Browser / Control

WebClient

Proxy

Context

WebClient

Frontend

SocketSocket

Page 44: Gaming across multiple devices

Frontend

Table SQL

Context

Logic

Webpage

CDN

oData

WCF

Json via MVC

Browser / Control

Json Client

WebClient

SocketSocket

Page 45: Gaming across multiple devices

Content Delivery Network (CDN)

X

CDN

X

Less hops

Prop. “hops” oder “poor links”

Closest Point of Presence

Blob Storage

Public Container

DNS name resolves to closest POP

Blob header determines time-to-live at the edge

Page 46: Gaming across multiple devices

Content Delivery Network (CDN)

• 24 global distributed CDNs (99.95% availability)• Setup a CDN via Management Portal– Generate 2 URLs for diffrent distributions

• Direct Access:http://myacct.blob.core.windows.net/images/myimage.jpg

• Access via CDN:http://azXXXX.vo.msecnd.net/images/myimage.jpg

– CNAME Mappings for CDN URLshttp://blog.smarx.com/posts/using-the-new-windows-azure-cdn-with-a-custom-domain

• CDN for WebApps and Windows Azure Storage– CSS, Images, ...

• Smooth streaming available as CTP

Page 47: Gaming across multiple devices

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

Page 48: Gaming across multiple devices

Versioning of URLs

CDN

Superawesome WebApp

http://myapp.cloudapp.net

… <img src="http://azXXXX.vo.msecnd.net/images/logo.2011-09-16.png" />…

logo.2011-09-16.pnglogo.2011-09-16.png

logo.2011-11-22.png

… <img src="http://azXXXX.vo.msecnd.net/images/logo.2011-11-22.png" />… logo.2011-11-22.png

• Easy to manage Rollback and different Versions• Enables A/B Tests

Page 49: Gaming across multiple devices

CDN für Web Apps

• CDN support for 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 be edited

in order to use the OutputCache Module via Webappshttp://blogs.msdn.com/b/scicoria/archive/2011/07/10/hosted-service-as-a-windows-azure-cdn-origin-tips.aspx

Page 50: Gaming across multiple devices
Page 51: Gaming across multiple devices

Why Microsoft?

• Enterprise Business• Security• BizSpark Plus• MSDN• Support• Technical Resources

Page 52: Gaming across multiple devices

Why Microsoft?

• Enterprise Business• Security

•BizSpark Plus• MSDN• Support• Technical Resources

Page 53: Gaming across multiple devices

Why Microsoft?

• Enterprise Business• Security• BizSpark Plus• MSDN• Support• Technical Resources

Page 54: Gaming across multiple devices

GO CHECK IT OUT

www.windowsazure.com