steve marx windows azure microsoft corporation es01

37
Developing And Deploying Your First Cloud Service Steve Marx Windows Azure Microsoft Corporation ES01

Upload: amia-partin

Post on 01-Apr-2015

219 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Steve Marx Windows Azure Microsoft Corporation ES01

Developing And Deploying Your First Cloud Service

Steve MarxWindows AzureMicrosoft Corporation

ES01

Page 2: Steve Marx Windows Azure Microsoft Corporation ES01

This talk is for developers.

Page 3: Steve Marx Windows Azure Microsoft Corporation ES01

It’s about making things concrete.

Page 4: Steve Marx Windows Azure Microsoft Corporation ES01

It’s about the present.

Page 5: Steve Marx Windows Azure Microsoft Corporation ES01

It’s composed of:

Demos90%

Other10%

Page 6: Steve Marx Windows Azure Microsoft Corporation ES01

90% all at once

demo

Page 7: Steve Marx Windows Azure Microsoft Corporation ES01

Overview

Developing an service

Testing and debugging locally

Deploying to the cloud

Maintaining a running service

Page 8: Steve Marx Windows Azure Microsoft Corporation ES01

No Surprises

Page 9: Steve Marx Windows Azure Microsoft Corporation ES01

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)

Page 10: Steve Marx Windows Azure Microsoft Corporation ES01

Hello, World!

demo

Page 11: Steve Marx Windows Azure Microsoft Corporation ES01

So What?

Default.aspx

Page 12: Steve Marx Windows Azure Microsoft Corporation ES01

We Got Scalability For Free!

Scalability Availability Zero-downtime upgrades All with existing tools and skills

Default.aspxLB

Page 13: Steve Marx Windows Azure Microsoft Corporation ES01

Horizontal Scaling

What about state?(e.g., shopping cart)

Page 14: Steve Marx Windows Azure Microsoft Corporation ES01

Separating State

Durable Store

Page 15: Steve Marx Windows Azure Microsoft Corporation ES01

Durable Storage

Durable, scalable, available store

Simple abstractions

Simple interface REST ADO.NET Data Services

Blobs Tables

Queues

Page 16: Steve Marx Windows Azure Microsoft Corporation ES01

Hello, Storage!

demo

Page 17: Steve Marx Windows Azure Microsoft Corporation ES01

Simple Storage

Default.aspx

Storage(Blobs, Tables, Queues)

LB

Page 18: Steve Marx Windows Azure Microsoft Corporation ES01

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

Page 19: Steve Marx Windows Azure Microsoft Corporation ES01

Service ArchitecturesWeb role

Storage

LB Worker.cs

Page 20: Steve Marx Windows Azure Microsoft Corporation ES01

Service ArchitecturesWorker role

Default.aspx

Storage

LB

Page 21: Steve Marx Windows Azure Microsoft Corporation ES01

Service ArchitecturesWeb and worker roles

Storage

LB

Page 22: Steve Marx Windows Azure Microsoft Corporation ES01

Worker Role

demo

Page 23: Steve Marx Windows Azure Microsoft Corporation ES01

Web Role

Default.aspx

Storage(Blobs, Tables, Queues)

LB

Page 24: Steve Marx Windows Azure Microsoft Corporation ES01

Web And Worker Roles

Default.aspx

Storage(Blobs, Tables, Queues)

LB Worker.cs

Simple queue interface

Page 25: Steve Marx Windows Azure Microsoft Corporation ES01

Probably not the first one…

Oops, a bug!

Page 26: Steve Marx Windows Azure Microsoft Corporation ES01

Debugging

Remember, no surprises

Offline, just what you would expect Set breakpoints Step into code Inspect variables

What about in the cloud?

Page 27: Steve Marx Windows Azure Microsoft Corporation ES01

Logging

Debugging the cloud really means logging

Simple logging API today

More functionality over time

Page 28: Steve Marx Windows Azure Microsoft Corporation ES01

Debugging and Logging

demo

Page 29: Steve Marx Windows Azure Microsoft Corporation ES01

Publishing Your Service To The Cloud

1. Write code on your laptop2. Upload your package to the web portal3. Push “deploy”

4. Monitor, upgrade, scale…

Page 30: Steve Marx Windows Azure Microsoft Corporation ES01

Hello, World!(the whole world)

demo

Page 31: Steve Marx Windows Azure Microsoft Corporation ES01

Summary

Familiar development

Local debugging

Simple deployment

Automated management

Page 32: Steve Marx Windows Azure Microsoft Corporation ES01

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)

Page 33: Steve Marx Windows Azure Microsoft Corporation ES01

Credits

Thanks for the photos!

Developer desk:http://www.flickr.com/photos/dunkv/97119622/

Concrete, WA:http://flickr.com/photos/karynsig/771785316/

Page 34: Steve Marx Windows Azure Microsoft Corporation ES01

Questions?

Page 35: Steve Marx Windows Azure Microsoft Corporation ES01

Evals & Recordings

Please fill

out your

evaluation for

this session at:

This session will be available as a recording at:

www.microsoftpdc.com

Page 36: Steve Marx Windows Azure Microsoft Corporation ES01

© 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.

Page 37: Steve Marx Windows Azure Microsoft Corporation ES01