370 likes | 497 Views
ES01. Developing And Deploying Your First Cloud Service. Steve Marx Windows Azure Microsoft Corporation. This talk is for developers. It’s about making things concrete. It’s about the present. It’s composed o f:. demo. 90% all at once. Overview. Developing an service
E N D
ES01 Developing And Deploying Your First Cloud Service Steve Marx Windows Azure Microsoft Corporation
demo 90% all at once
Overview • Developing an service • Testing and debugging locally • Deploying to the cloud • Maintaining a running service
Consistent, Familiar Development • Visual Studio • Templates • Debugging • .NET platform • .NET, IIS7, WCF • “The cloud on your desktop” • Complete offline cloud simulation • Like Cassini (web development server)
demo Hello, World!
So What? Default.aspx
We Got Scalability For Free! • Scalability • Availability • Zero-downtime upgrades • All with existing tools and skills LB Default.aspx
Horizontal Scaling What about state? (e.g., shopping cart)
Separating State Durable Store
Durable Storage • Durable, scalable, available store • Simple abstractions • Simple interface • REST • ADO.NET Data Services Blobs Tables Queues …
demo Hello, Storage!
Simple Storage LB Default.aspx Storage(Blobs, Tables, Queues)
Not Just Websites • Cloud services aren’t just websites • Many other types of work for the cloud • Bulk file conversion • Heavy analytics • Finding extraterrestrials • Even websites can offload async work • We need a more complex architecture
Service ArchitecturesWeb role LB Default.aspx Worker.cs Storage
Service ArchitecturesWorker role LB Default.aspx Worker.cs Storage
Service ArchitecturesWeb and worker roles LB Default.aspx Worker.cs Storage
demo Worker Role
Web Role LB Default.aspx Storage(Blobs, Tables, Queues)
Web And Worker Roles LB Default.aspx Worker.cs Simple queue interface Storage(Blobs, Tables, Queues)
Oops, a bug! Probably not the first one…
Debugging • Remember, no surprises • Offline, just what you would expect • Set breakpoints • Step into code • Inspect variables • What about in the cloud?
Logging • Debugging the cloud really means logging • Simple logging API today • More functionality over time
demo Debugging and Logging
Publishing Your Service To The Cloud • Write code on your laptop • Upload your package to the web portal • Push “deploy” • Monitor, upgrade, scale…
demo Hello, World!(the whole world)
Summary • Familiar development • Local debugging • Simple deployment • Automated management
What Next? • Go to http://azure.com • Download the SDK, write some code • Go to these talks: • Storage (Brad Calder) • Tuesday at 1:45pm (502A) • Best Practices (Sriram Krishnan) • Wednesday at 3pm (here) • Programming Model (Daniel Wang) • Thursday at 12pm (here)
Credits Thanks for the photos! Developer desk:http://www.flickr.com/photos/dunkv/97119622/ Concrete, WA:http://flickr.com/photos/karynsig/771785316/
Evals & Recordings Please fill out your evaluation for this session at: This session will be available as a recording at: www.microsoftpdc.com
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.