Windows azure camp

57
Windows Azure Camp Kolkata – 10 th April - 2011

description

Presenting Windows Azure for the Community by the Community. An entire 1 day event in Kolkata to learn the basics of Windows Azure and cloud computing

Transcript of Windows azure camp

Page 1: Windows azure camp

Windows Azure Camp

Kolkata – 10th April - 2011

Page 2: Windows azure camp

Agenda• Introducing Cloud• Introducing windows Azure • Different Components of Windows Azure• Using Azure in Development Environment• Hosting your Application to Cloud• Cloud Storage - Windows Azure storage Services• Introducing SQL Azure• Building Application Using SQL Azure• Introducing Windows Azure App Fabric

Page 3: Windows azure camp

Introducing Cloud

Page 4: Windows azure camp

Why Cloud Computing ?A Quick Look Back

Own Resource

Buy Own Servers Maintenance

Page 5: Windows azure camp

Why Cloud Computing ?Why not take a Hosted Server ?

Own Resource

Using Service Provider Reduced Maintenance Cost

Traffic Increased

Page 6: Windows azure camp

Why Cloud Computing ?

A set of connected servers which are managed in a data CentersOn which developers can:

Install ServicesRun servicesStore and retrieve data

Let’s Move into Cloud

What Does Cloud Provides ?Infrastructure as a Service (IaaS)Platform as a Service (PaaS)Software as a Service (SaaS)

Page 7: Windows azure camp

Cloud Power

Cloud Data Center

1

2

3

4

5

6

7

8

Applications

Recover from hardware failures

Handle increase in traffic Automatically

Automatic Storage Capacity Upgrade

Diagnose service failures and recover

Apply OS patches and Configuration

Automatic Upgrade H/W

Pay as Per Use

Available 24 x 7

ReliabilityAvailabilityScalability

Page 8: Windows azure camp

Scalability

Page 9: Windows azure camp

Introducing Windows Azure

Page 10: Windows azure camp

VideoWhat is Windows Azure ?

Page 11: Windows azure camp

Cloud OSAn operating system that can controls a set of connected servers and Span over the internet

Self collaborationAbstract execution environmentHosting EnvironmentsShared file systemResource and storage allocationProgramming environmentsProviding security on demand

Utility computing24/7 operationPay for what you useAuto UpgradableSimpler, transparent, configurable administration

Page 12: Windows azure camp

What Is Windows Azure ?It is an operating system for the cloudMainly Focusing on utility computingMain Components

Service management and MonitoringComputeStorage

Developer experience

Page 13: Windows azure camp

Relating Desktop With Azure

Desktop

1

2

3

EXE

Application Configuration

Manifest

4 Library / Services

5 Local data stores

Windows Azure

1

2

3

Service package

Service Configuration

Service definition

4 Web Role and Worker Role

5 Cloud Storage

Page 14: Windows azure camp

Windows Azure Continue...

Internet

Page 15: Windows azure camp

Windows Azure Platform

Azure™ Services Platform

Page 16: Windows azure camp

Using Windows Azure Service Platform

Page 17: Windows azure camp

Different Components Of Window Azure

Page 18: Windows azure camp

Components Of Windows Azure

Compute Storage

Fabric

Page 19: Windows azure camp

Windows Azure Compute

Page 20: Windows azure camp

ComputeA Windows Azure compute service is built from one or more roles. In Windows Azure, a service may run one or more instances of each role type. A service could also be composed of one of more instances of multiple role types. Windows Azure supports the following three types of roles:

Web role is customized for web application programming and supported by IIS 7. Worker role is used for generalized development, and may perform background processing for a web role. Virtual Machine (VM) role runs an image (a VHD) of a Windows Server 2008 R2 virtual machine. This VHD is created using an on-premises Windows Server machine, then uploaded to Windows Azure.

Page 21: Windows azure camp

Web Role and Worker Role

Storage Services

Web farm that handles request from the internetIIS7 hosted web coreHosts ASP.NETXML based configuration of IIS7 Integrated managed pipelineSupports SSL

Public Internet

Web Role

Load Balancer

Web RoleWeb Role

Page 22: Windows azure camp

Worker RoleNo inbound network connectionsCan read requests from queue

in storage

Storage Service

Public Internet

Worker RoleWorker

RoleWorker

RoleWorker

Role

Page 23: Windows azure camp

Web Role and Worker Role

Storage Services

Public Internet

Web Role

Load Balancer

Worker Role

Web Role

Worker Role

Page 24: Windows azure camp

VM Role

Page 25: Windows azure camp

DemoCloud on Desktop

Getting Touch with Web and Worker Roles

Page 26: Windows azure camp

DemoHosting your first ASP.NET

Application On Windows Azure

Page 27: Windows azure camp

Windows Azure Storage

Page 28: Windows azure camp

Azure StorageNeed persistent and durable storage in the cloud?

Windows Azure is a perfect fit. Windows Azure gives you four core storage services that are secure, scalable and easy to access.

Binary Large Object Service(Blobs) Table Service ( Tables)Queue Service ( Queues)Windows Azure Drive

Blobs Tables Queue

Page 29: Windows azure camp

Azure Storage - BLOBSBlobs are one of the most credible feature with AzureProvide a simple interface for storing named files along with

metadata for the fileIt’s very much reliable with Large size of fileMain Concept : Account, Container, Blob , Block

Page 30: Windows azure camp

Azure Storage – BLOBS – Key Concepts

BlobContainerAccount

Account

Pictures

IMG001.JPG

IMG002.JPG

Movies MOV1.AVI

Block A

Block B

Block C

Block

Page 31: Windows azure camp

Azure Storage – BLOBS – How it works ?

Movie.avi

Movie.avi

Block 1

Block 2

Block 3

Block 4

Block 5

Block 1

Block 2

Block 3

Block 4

Block 5

Movie.avi

1. Identify the file to be uploaded (Movie.avi).2. Identify / split the blocks for the file.3. Upload every block in any order you want to.4. Commit the block to a blob.

Page 32: Windows azure camp

Azure Storage – BLOBS – Must KnowKey Points

Files has to split to have blocks when it crosses 64 MB. Every block can be a maximum of 4 MB size. The maximum size of the blob / file can be 200 GB or 50,000 blocks. The blocks uploaded is not committed unless the final API call "PutBlockList" is called.

Block blobs though offer a very good and effective way of working with bigger files, it lacks on certain places.

The maximum size of the file can be no larger than 200GB. It needs at least two API calls to write a blob when uploaded as blocks. [PutBlock to upload a block with block id and PutBlockList to commit all the changes]. Any uploading cannot be committed immediately unless the final call "PutBlockList" is made. Reading a byte range other than the block split cannot be done.

Page 33: Windows azure camp

Azure Storage – Page BLOBS

The maximum size of a page blob file would be 1 TB. The least page size is 512 bytes and can accommodate any data in multiples of 512 bytes up to 4 MB into a page. As soon as a data is uploaded, it is written into the cloud / disk. All the data / pages inside the page blobs are indexed to allow faster read / write. Windows Azure Drive (TBD) is supported. A page can be considered as a individual file and read / write operation can be performed on it.

Page 34: Windows azure camp

Azure Storage - Tablesprovide structured storage. A table is a set of entities, which contain a set of propertiesThere is no limitation on the number of table / collection and rows. Every entities can have up to 255 properties. Every entity should have a property defining the row key "RowKey" and partition key "PartitionKey". Row key is the unique identifier of the row and partition key is generally any property which would be better for maintaining partition. (e.g., DepartmentId in an entity of Employee). The limitation of not being an RDBMS is easily and effectively overcome by the support of LINQ on the tables. A LINQ query can therefore be written and executed against the tables. Every table is mirrored thrice in Azure and the reliability and availability is maintained automatically.

Every table has a partition keyIt is the first property (column) of your tableAll entities in a table with the same partition key value live in the same partition

Need to choose partitioning scheme to make data access scalable

Page 35: Windows azure camp

Azure Storage – Tables – Key Concepts

EntityTableAccount

Account

Users

Name=…hash…=

Name=…hash…=

PhotoIndex

Tag=…id…=

Tag=…,id…=

Page 36: Windows azure camp

Azure Storage - Queueprovide reliable storage and delivery of messages for an applicationKey Concept : Account, Storage, MessageA message in queue has a limitation of 8 KB in size. A Queue has no limitation on the number of messages it can contain. Messages cannot choose their destinations individually but they follow the path or receiver of the queue. Message when consumed by acquiring token which expires by time i.e., once a message is got it will be locked / hidden from any other process unless the time expires or the message is deleted; if the time expires, the message will be marked as new and will be provided to the next consumer waiting. A detailed process is explained in the animation shown below. Messages can be even got without a time expiry and immediately marked as processed.

Page 37: Windows azure camp

Azure Storage – QUEUES– Key Concepts

MessageQueueAccount

Account

Jobs 1

http…//:

http…//:

Jobs 2

http…//:

http…//:

Page 38: Windows azure camp

Azure Storage –QUEUS– How it works ?

Queue

Msg 1

Msg 2

Msg 2

Msg 3

Source Applicatio

n

Msg 1Msg 3

Process 2

Process1

Msg 1Msg 2Msg 3

Page 39: Windows azure camp

Azure Storage – TBD

Page 40: Windows azure camp

DemoAzure Storage with Development Fabric

Page 41: Windows azure camp

DemoUsing Azure Storage on Cloud

Page 42: Windows azure camp

Windows Azure In a real Business Scenarios

Page 43: Windows azure camp

Parallel Processing

Web Role

Queue Worker Role Instance

Page 44: Windows azure camp

DemoWindows Azure In a real Business Scenarios

Page 45: Windows azure camp

Windows Azure Fabric

Page 46: Windows azure camp

Azure Fabric – Manage & Monitor

Page 47: Windows azure camp

DemoWindows Azure Fabric

Page 48: Windows azure camp

Introducing SQL Azure

Page 49: Windows azure camp

VideoWhat is SQL Azure ?

Page 50: Windows azure camp

Introducing SQL AzureRobust Relational Database on the Cloud Hosted on Microsoft Data Center.Database as a Service ( DaaS)Accessible via both Local and Cloud Based ApplicationInstalled into different nodes of Microsoft Data Center. So There is no need of Install, manageSQL Server on CloudHigh availability Easy Data Sync and Local SQL Server Migration

Cloud Apps

Local Apps

Page 51: Windows azure camp

DemoUsing SQL Azure Portal

Page 52: Windows azure camp

DemoSQL Azure and SQL Server Management Studio

Page 53: Windows azure camp

DemoSQL Azure – WCF – Windows Phone 7

Page 55: Windows azure camp

Q / A

Page 57: Windows azure camp