Windows azure (by me)

32
Windows Azure Tour

description

Hindustan institute of technology

Transcript of Windows azure (by me)

Page 1: Windows azure (by me)

Windows Azure Tour

Page 2: Windows azure (by me)

How did cloud computing evolve at first ?

Page 3: Windows azure (by me)

Types

• Public – Available On self Service Basis

• Hybrid – Many into one• Private – For Proprietary software's

Page 4: Windows azure (by me)

Problems which lead to the innovation

• Piracy• Software Cost• Hardware Cost• Man Power• Security Issues• Support for different Hardwares

Page 5: Windows azure (by me)

• Who are the Major players involved in developing a cloud OS ?

Page 6: Windows azure (by me)

Agenda

• What is Windows Azure?• Develop Your Application• Deploy To Staging and Production • Some Stuff To Think About

Page 7: Windows azure (by me)

The Azure Platform

Page 8: Windows azure (by me)

The Azure Platform

Page 9: Windows azure (by me)

The “cloud” in Cloud Services?

• Think data-center somewhere on the internet

• Allows you to run your app• Allows you to read and write data

Page 10: Windows azure (by me)

Why Azure?

• “I’ve got my awesome data-center so…”• No more worrying about…

– Buying, configuring, maintaining hardware– Buying, configuring, maintaining the operating system – Network infrastructure

• Routers, Switches, Load Balancers

– Your data-center’s power and internet connections– Failovers

• Worry less about…– App deployment– Capacity planning

• Focus on writing your app

Page 11: Windows azure (by me)

Have a look at Data Center of Azure at the initial stage of the project

Page 12: Windows azure (by me)

Simple Scale Out

• Changes in traffic• Need more

servers?• Need fewer

servers?

Page 13: Windows azure (by me)

Azure: The Developer View

• Write it in Visual Studio– New project types– Debug your code

• .NET, ASP.NET, WCF, IIS7, LINQ• Azure Storage– Database in the cloud– (with a few caveats)

• Desktop development versions of– Azure Fabric– Azure Storage

Page 14: Windows azure (by me)

Debugging In The Cloud

• We can debug a service in Visual Studio• How do you debug a service that has

been deployed?– Answer: you don’t

• Logging is the answer• RoleManager.WriteToLog(eventLogNam

e, message)– Event log name values: Error, Information,

Warning, Debug, Critical

Page 15: Windows azure (by me)

AZURE STORAGE

Page 16: Windows azure (by me)

Azure Storage

• Simple database in the cloud– Tables

• “structured storage”

– Blobs– Queues

• You don’t worry about replication• Scales like nobody’s business• Development version– DevelopmentStorage.exe– Uses SQL Server Express

Page 17: Windows azure (by me)

Table Storage

• Every row has RowKey & Partition Key• RowKey = primary key• PartitionKey

– Helps you tell Azure how to scale your data– You have to think about how you’ll be querying– By State? By Hour? Other?

RowKey PartitionKey FirstName LastName

1 MA Ben Day

2 MA John Malkovich

3 WA Bill Gates

4 CA Steve Jobs

Page 18: Windows azure (by me)

PartitionKey

• Your partitions could be on different servers• Best practice: If you know your PartitionKey,

add it to the WHERE clause• No PartitionKey in the WHERE insane table

scans• Recommendation: More partitions is (probably)

better

• Think hard about your partition key in the beginning– Else, roll your own re-partitioning

Page 19: Windows azure (by me)

Column Data Types

• Partition key and Row key– String (up to 64KB)

• Other properties– String (up to 64KB)– Binary (up to 64KB)– Bool– DateTime – GUID– Int– Int64– Double

Page 20: Windows azure (by me)

MORE THAN JUST ASPX

Page 21: Windows azure (by me)

Utility Compute without a UI

• Azure uses the concept of “Roles”• There are two types of roles:–Web role–Worker role

Page 22: Windows azure (by me)

Web & Worker

Page 23: Windows azure (by me)

Worker Role and a Queue

• In a web role, create an ASP.NET page– Creates a queue–Writes to a queue– Gets queue depth

• Worker Role– Reads the queue– “Processes” the message

Page 24: Windows azure (by me)

• How will the interface look like ?

Page 25: Windows azure (by me)

DEPLOYMENT

Page 26: Windows azure (by me)

Deploy To The Cloud

• Change the storage config to use production servers

Page 27: Windows azure (by me)

MISCELLANEOUS

Page 28: Windows azure (by me)

Things to think about

• No foreign keys• No triggers• No stored procedures• In Table storage, strings can only be

64k– You’ll need to use a mix of Blob and

Tables

• Think hard about what config values you put in web.config/app.config vs ServiceConfiguration.cscfg

Page 29: Windows azure (by me)

SaaS – Software as Service

• Take a look at this !

Page 30: Windows azure (by me)

• Final year projects• Current market ?• Landing a job in Microsoft ?• Where to find the learning

resources ?

Page 31: Windows azure (by me)

Thank You

Gopinathan.RmFind me @

www.twitter.com/[email protected]@gmail.comwww.fb.me/gopinathanrmwww.teknicalerror.blogspot.com

Page 32: Windows azure (by me)

Queries