bizspark startup night windows azure march 29, 2011

31
A Lap Around Windows Azure Chris Ismael Developer Evangelist Developer and Platform Evangelism Microsoft Singapore

Upload: spiffy

Post on 12-May-2015

2.221 views

Category:

Technology


1 download

DESCRIPTION

BizSpark Startup Night presentation in Singpaore. March 29, 2011

TRANSCRIPT

Page 1: BizSpark Startup Night Windows Azure March 29, 2011

A Lap Around Windows Azure

Chris IsmaelDeveloper EvangelistDeveloper and Platform EvangelismMicrosoft Singapore

Page 2: BizSpark Startup Night Windows Azure March 29, 2011

Goals and Agenda

To get you to sign up for the Windows Azure Introductory Offer

http://bit.ly/freeazuresg

Provide you with the “core concepts” knowledge that would be your foundation in understanding Windows Azure

AgendaWhy Cloud Computing?Why Would I…

Define my website/service’s architectureUse Blob Storage, Tables, QueuesUse Windows Azure AppFabric

Page 3: BizSpark Startup Night Windows Azure March 29, 2011

Why Cloud Computing startedHow Windows Azure came about?

Microsoft’s online services challengesSpending a lot of time managing the machinesInefficient utilizationLittle resource sharingNo shared platform or standard toolset for everyone

Reasons for major cloud providersOptimization (extra resources to share) ie Amazon Web Services

Profit – economies of scaleStrategic – product franchiseExtension – customer relationshipsPresence – in marketPlatform – hub master of ISV’s offerings

Page 4: BizSpark Startup Night Windows Azure March 29, 2011

Characteristics of Cloud Computing

Value PropositionElasticity No CommitmentReduced CostConsumption-based PricingExtra CapacityFaster Time to MarketSelf-Service ITSLA – 99.9% (over existing)Simplify ITConvert CapEx to OpExNew Capabilities – ie federated security

ConcernsSecurityPerformance and Availability (ie storage)Vendor Lock-inDisaster RecoveryIn-house Capability and ProcessBilling ConcernsTrustAlignment

Best bet: Try it (bit.ly/freeazuresg)

From David Pallman (davidpallman.blogspot.com)

Page 5: BizSpark Startup Night Windows Azure March 29, 2011

Sample Scenario – Your typical Online Store

Planning / ArchitecturePurchasing (hardware, software licenses, etc)

Prototyping / TestingDeployment / ManagementAdding new storageDecoupling componentsManaging identity (credentials)

The Service ModelSigning up for Windows AzureWindows Azure Tool SetPortal and Service Management API

Blobs and TablesQueuesAppFabric Access Control Service (ACS)

Page 6: BizSpark Startup Night Windows Azure March 29, 2011

Planning / Architecture

Service Model to the rescue!

Windows Azure RolesTemplates of commonly-used machine configurations

Web Role – website / front-endWorker Role – background jobsVM Role – virtual machine image

Service Definition and Configuration files

Consider the effort to get this running:- Configuration of machines- Networking- Port configurations- Etc.

Page 7: BizSpark Startup Night Windows Azure March 29, 2011

Creating a Windows Azure application in Visual Studio 2010

Page 8: BizSpark Startup Night Windows Azure March 29, 2011

Things to ponder on:

This looks like Platform-As-A-Service (PAAS)Provides the tools and development environment to deploy applicationsProvides APIs to interact with the cloud componentsIAAS, SAAS

Can I log-in to view these machines?

IAAS•Example Amazon

PAAS•Example Windows Azure

SAAS•Example•Salesforce

Page 9: BizSpark Startup Night Windows Azure March 29, 2011

Signing up for Windows Azure

Page 10: BizSpark Startup Night Windows Azure March 29, 2011
Page 11: BizSpark Startup Night Windows Azure March 29, 2011

Things to ponder onDo I have to use Visual Studio to deploy? (show demo first)

Is there a way to programmatically control and manage my deployments?

Service Runtime API – let’s you access manipulate, and respond to the ambient environment in which your code runs (managed, native)

Service Management API – meant to be run “outside” the cloud to manipulate your running services from outside (HTTP REST, free)

Page 12: BizSpark Startup Night Windows Azure March 29, 2011

Sample Scenario – Your typical Online Store

Planning / ArchitecturePurchasing (hardware, software licenses, etc)

Prototyping / DeploymentManagementAdding new storageDecoupling componentsManaging identity (credentials)

The Service ModelSigning up for Windows AzureWindows Azure Tool SetPortal and Service Management API

Blobs and TablesQueuesAppFabric Access Control Service (ACS)

Page 13: BizSpark Startup Night Windows Azure March 29, 2011

Storage using Blobs

Why a new storage model?What’s wrong with the filesystem?

When would I need a blob?What skills do I need to use blobs?

Blobs

No need to predict how much storage is neededPersistent storage for your instancesScalable – consistent performance regardless of amount of dataReplication of dataREST HTTP / StorageClient libraries

Page 14: BizSpark Startup Night Windows Azure March 29, 2011

Blob Storage Concepts

BlobContainerAccount

sally

pictures

IMG001.JPG

IMG002.JPG

movies MOV1.AVI

Page 15: BizSpark Startup Night Windows Azure March 29, 2011

Blob Demo

Page 16: BizSpark Startup Night Windows Azure March 29, 2011

Things to ponder on..

Standard REST PUT/GET Interfacehttp://<Account>.blob.core.windows.net/<Container>/<BlobName>

StorageClient Library availableMetadata can be associated per blob – 8K maxWatch your wallet

$0.15 per GB stored per month$0.01 per 10,000 storage transactions

Windows Azure Drive… the C:\ solution (using VHDs)

Page 17: BizSpark Startup Night Windows Azure March 29, 2011

Scenarios for using Queues

Page 18: BizSpark Startup Night Windows Azure March 29, 2011

Queue Demo

Page 19: BizSpark Startup Night Windows Azure March 29, 2011

C1

C2

Dequeue And Delete Messages

34

Producers Consumers

P2

P1

1

2

12 13

Page 20: BizSpark Startup Night Windows Azure March 29, 2011

Summary Of Windows Azure Queues

Provide reliable message deliveryAllows Messages to be retrieved and processed at least once

No limit on number of messages stored in a Queue

Message size is <=8KB

Page 21: BizSpark Startup Night Windows Azure March 29, 2011

Tables

First a little story about traffic signals…Versus traditional databases

Denormalized dataNo schema – just name-value pairsNo distributed transactionsBlack box – no settingsRow size limits – 1MB

Easy analogy = Excel sheet

Page 22: BizSpark Startup Night Windows Azure March 29, 2011

Table Demo

Page 23: BizSpark Startup Night Windows Azure March 29, 2011

Table Partitioning

• To increase performance• Data resilience• Cheap

Fastest to slowest query

1. Unique partition key 2. Partition key + row key3. Partition key4. No partition key/row

Page 24: BizSpark Startup Night Windows Azure March 29, 2011

So do I need SQL Azure?

Windows Azure Tables

Denormalized dataNo schema – just name-value pairsNo distributed transactionsBlack box – no settingsRow size limits – 1MB

SQL Azure

Invert everything (pretty much) on the left, plus…Easier migration – MySQL/SQL Server -> SQL Azure, etcHas limits

10, 20, 30 – 50GBWhat if I need more than that???

Page 25: BizSpark Startup Night Windows Azure March 29, 2011

Sample Scenario – Your typical Online Store

Planning / ArchitecturePurchasing (hardware, software licenses, etc)

Prototyping / DeploymentManagementAdding new storageDecoupling componentsManaging identity (credentials)

The Service ModelSigning up for Windows AzureWindows Azure Tool SetPortal and Service Management API

Blobs and TablesQueuesAppFabric Access Control Service (ACS)

Page 26: BizSpark Startup Night Windows Azure March 29, 2011

Identity Management using AppFabric ACS

Recap.. ScenariosYou don’t want to manage passwords (how is that possible?)You don’t want to drastically change your existing code to handle logic for credentialsYou have an existing Identity Store (Active Directory)You want users to authenticate using several existing Identity Stores such as Live ID, Google, etc

Claims-based identity to the rescue! (share analogy) – portal.appfabriclabs.com

Page 27: BizSpark Startup Night Windows Azure March 29, 2011

Tokens aplenty!

Page 28: BizSpark Startup Night Windows Azure March 29, 2011

Demo ACS

Page 29: BizSpark Startup Night Windows Azure March 29, 2011

Sample Scenario – Your typical Online Store

Planning / ArchitecturePurchasing (hardware, software licenses, etc)

Prototyping / DeploymentManagementAdding new storageDecoupling componentsManaging identity (credentials)

The Service ModelSigning up for Windows AzureWindows Azure Tool SetPortal and Service Management API

Blobs and TablesQueuesAppFabric Access Control Service (ACS)A bunch more to check out: VM Role

Azure Drive AppFabric – Cache

AppFabric - Service Bus

Page 30: BizSpark Startup Night Windows Azure March 29, 2011

Pizza time

Sign up for a free account http://bit.ly/freeazuresg Learn more at http://www.azure.com Try AppFabric at http://portal.appfabriclabs.com - free

Page 31: BizSpark Startup Night Windows Azure March 29, 2011

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