azure cloud services

15
Cloud Services

Upload: guy-barrette

Post on 29-Jun-2015

224 views

Category:

Technology


2 download

DESCRIPTION

Introduction to Microsoft Azure Cloud Services for DevTeach Oceanwide

TRANSCRIPT

Page 1: Azure Cloud Services

Cloud Services

Page 2: Azure Cloud Services

Guy Barrette

MVP Windows AzureFreelance Solutions Architect

Co-animateur duVisual Studio Talk Show

[email protected]

@guybarrette

Page 3: Azure Cloud Services

A container of related service roles

Web Roles Worker Roles VMs

What is a Cloud Service?

Page 4: Azure Cloud Services

4

• Public endpointsPublicly accessible, load balanced

• Internal endpointsPrivate to cloud service, not load balanced

• Instance Input endpointsAddress individual instance

Microsoft Azure

How do roles communicate?

Page 5: Azure Cloud Services

Web Role

•All features of a worker role + IIS 7, 7.5 or IIS 8.0*•ASP.NET 3.5 SP1, 4.0 or 4.5* – 64bit•Hosts•Webforms or MVC•FastCGI applications (e.g. PHP)•Multiple Websites

•Http(s)•Web/Worker Hybrid•Can optionally implement RoleEntryPoint *with Windows Server 2012

Page 6: Azure Cloud Services

Worker Role Patterns

•Queue Polling Worker•Poll and Pop Messages within while(true) loop•E.g. Map/Reduce pattern, background image processing

•Listening Worker Role•Create TcpListener or WCF Service Host•E.g. Run a .NET SMTP server or WCF Service

•External Process Worker Role•OnStart or Run method executes Process.Start()•Startup Task installs or executes background/foreground process•Custom Role Entry Point (executable or .Net assembly)•E.g. Run a database server, web server, distributed cache

Page 7: Azure Cloud Services

At runtime each Role will execute on one or more instances A role instance is a set of code, configuration, and local data, deployed in a dedicated VM

Roles are defined in a Hosted ServiceA role definition specifies:VM sizeCommunication EndpointsLocal storage resourcesetc.

Roles and Instances

Page 8: Azure Cloud Services

ServicePackage

ServicePackage

Page 9: Azure Cloud Services

ServicePackage

Server Rack 1 Server Rack 2

Virtual machine

Virtual machine

Provision Role InstancesDeploy App CodeConfigure Network

Virtual machine

Virtual machine

Page 10: Azure Cloud Services

Windows Azure Datacenter

ServicePackage

Provision Role InstancesDeploy App CodeConfigure Network

Page 11: Azure Cloud Services

Windows Azure Datacenter

ServicePackage

Provision Role InstancesDeploy App CodeConfigure Network

Page 12: Azure Cloud Services

Network Load Balancer

Windows Azure Datacenter

Network load-balancer configured for traffic

Provision Role InstancesDeploy App CodeConfigure Network

Page 13: Azure Cloud Services

Network Load Balancer

Windows Azure Datacenter

Page 14: Azure Cloud Services

Scaling in Microsoft Azure• Scale up by choosing different VM sizes• Scale out by adding more instances• Auto-scale with Autoscaling Application Block• Scale out by using multiple service entities• CDN to distribute user traffic• Caching to offset server workloads

Page 15: Azure Cloud Services

Questions?