Power your website with Windows Azure

Post on 20-May-2015

617 views 0 download

Tags:

description

Slides of Microsoft Portugal "Developer Tech Refresh" event held in September 2013. Mostly a demo-based session.

Transcript of Power your website with Windows Azure

Power your Website withWindows AzureJoão Pedro Martins (jota) - jota@create.pt

• Windows Azure Web Sites:• Main Features

• Platform Architecture

• Demo: “the demo everybody makes”

• Demo: “the more complicated demo where Murphy might strike”

• Demo: “the dns custom domain demo”

• Demo: “the services demo”

• Demo: “the kudu demo”

• Plaform Scaling, use cases and pricing

Agenda

Azure Web Sites Feature Overview

Cloud First by Design

SQL based configuration

Dynamic provisioning of sites on demand

Network Storage (Azure xDrive, SMB, NAS, SAN)

Stateless web servers (no synchronization required)

How does it work?

Windows Azure Web Sites Architecture

HTTP WebWorkerWebWorkerWebWorker

Frontend(IIS ARR)

SQL Azure VHD blobs

SQL Azure / MySQL / Mongo

API endpoint

Publish endpoint

File Server

WebWorker

Serving HTTP(s) Traffic – Inactive Site (‘cold’ site)

http://site1..../

HTTP Frontend(IIS ARR)

SQL Azure VHD blobs

SQL Azure

API endpoint

Publish endpoint

File Server

Serving HTTP(s) Traffic – Inactive Site (‘cold’ site)

http://site1..../WebWorker

site1site1

HTTP WebWorkerWebWorkerWebWorker

SQL Azure VHD blobs

SQL Azure

API endpoint

Publish endpoint

File Server

Serving HTTP(s) Traffic – Active Site (‘hot’ site)

http://site1..../

site1

WebWorker

Frontend(IIS ARR)

… but how easy is it? (a true story)

Web Matrix

demo

• Create a site in WebMatrix using one of the existing templates

• Apply a theme using Twitter Bootstrap

• Migrate blogposts to it from another blog provider

• … how simple are these scenarios.

What did we see?

Continuous integration, testand deploymentdemo

• Start with a working local web site

• Configure a Azure WebSite and publish to it

• Add project to source control

• See the automated builds

• See the automated deployments• (much more to see here)

• See the automated test runs

What did we see?

Deployment Pipeline

Custom Domains

demo

• Configuration of CNAME and A record including validation

• Configure web site to use custom domain name

• Access web site using custom domain

• Note: not available for Free websites.

What did we see?

Host wcf services in web site

demo

• Expose WCF web services in Azure Web Site

• Programattically access SQL Azure DB (one of many ways!)

• Consume WCF services from Win8 app to display the data locally

What did we see?

Kudu

demo

• Debug and trace information

• Console to browse on site’s contents

• Transparent

What did we see?

• Scale Up

• Scale Out• Up to 10 instances (VMs)

• Autoscaling (currently) configurable based on CPU usage

Scaling – Standard Instances

• Optimizing cost

• Optimize response times

Auto - Scale

• Over 1.8b hits per month.

• Over 115K sites hosted.

• 99.9% monthly average SLA• Even with single website

instance!

Service performance

0

100

200

300

400

500

600

700

800

900

1000

99,5

99,55

99,6

99,65

99,7

99,75

99,8

99,85

99,9

99,95

100

2012/07 2012/08 2012/09 2012/10 2012/11 2012/12 2013/01

Monthly SLA

Availablity Latency

Use cases - Customer adoption

Over 80k Subscriptions Since June’12

Pricing

• Using Web Matrix to create and customize a blog from the gallery and migratecontents to it

• Integration of Team Foundation Server for building, testing and deployingsolutions

• Set up custom domain names

• Expose WCF web services in web site and consume from Windows 8

• Kudo & diagnostics

Summary

Why Using Windows Azure Web Sites

Scalable, secure and flexible platform for building and hosting powerful web applications.

• A cobrir todos os temas do evento relacionados com Windows Azure

• 27/Set @ Microsoft LX (0900-1800)

• Gratuito!• Almoço não incluído

• Inscrições:• Mail para Luis.Calado@Microsoft.com indicando:

• Nome, telefone, email

Free Azure Training @ Microsoft LX – 27/Set (Sexta)

Obrigado! Questões?João Pedro Martins (jota) - jota@create.pt