building an application for windows azure and sql azure

59
Page 1 Building an Application for Windows Azure and SQL Azure Eric Nelson Microsoft UK http://bit.ly/iupdateable | http://twitter.com/ericnel | http://ukazure.ning.com

Upload: eric-nelson

Post on 22-May-2015

1.893 views

Category:

Technology


2 download

DESCRIPTION

slide from march 2010 www.devweek.com

TRANSCRIPT

Page 1: Building An Application For Windows Azure And Sql Azure

Page 1

Building an Application for Windows Azure and SQL AzureEric NelsonMicrosoft UKhttp://bit.ly/iupdateable | http://twitter.com/ericnel | http://ukazure.ning.com

Page 2: Building An Application For Windows Azure And Sql Azure

Page 2

Session Objectives

• Windows Azure Platform overview• Drill into Windows Azure• Drill into SQL Azure• Leave feeling confident that you can

build your own applications

Page 3: Building An Application For Windows Azure And Sql Azure

Page 3

New online communityhttp://ukazure.ning.com/

3

Page 4: Building An Application For Windows Azure And Sql Azure

Page 4

Windows Azure Platform 101

Page 5: Building An Application For Windows Azure And Sql Azure

Page 5

Windows Azure Platform

• Windows Azure – Your code and data

• SQL Azure Database – Your relational data

• AppFabric* – Your messages

Code Data RelationalData

Page 6: Building An Application For Windows Azure And Sql Azure

Page 6

Roadmap

• Taken a little while – Summer 2007 Biztalk Services -> .NET Services -> AppFabric– March 2008 SQL Server Data Services -> SQL Data Services -> SQL Azure– October 2008 Windows Azure -> Windows Azure

• Jan 4th went live – Yippeeeeeeeee!• February 1st started charging – Boooo!• All teams active on new features• You can influence it

www.mygreatwindowsazureidea.com

6

Page 7: Building An Application For Windows Azure And Sql Azure

Page 7

7 things that may surprise you

1. Azure is not just about “the next twitter”2. You can use C++, Java, Ruby, PhP...3. It is free to try4. There are hundreds of great 3rd party

tools5. You can store up to 500TB of data6. It offers a full relational database for £67. Millions of developers are “Azure ready”

Page 8: Building An Application For Windows Azure And Sql Azure

Page 8

Demo

Page 9: Building An Application For Windows Azure And Sql Azure

Page 9

Windows Azure

Page 10: Building An Application For Windows Azure And Sql Azure

Page 10

Windows Azure for Application Developers

Portal HostedService

Storage

SDK

Page 11: Building An Application For Windows Azure And Sql Azure

Page 11

Product group alert!

PortalSDK

Code

Data

RelationalData

Page 12: Building An Application For Windows Azure And Sql Azure

Page 12

Development Fabric and Storage

Page 13: Building An Application For Windows Azure And Sql Azure

Page 13

Roles

Page 14: Building An Application For Windows Azure And Sql Azure

Page 14

Load Balanced Instances

http://yourapp.cloudapp.nethttp://yourapp.cloudapp.net

Page 15: Building An Application For Windows Azure And Sql Azure

Page 15

Web vs Worker Role

Page 16: Building An Application For Windows Azure And Sql Azure

Page 16

Storage

Page 17: Building An Application For Windows Azure And Sql Azure

Page 17

Tables

Page 18: Building An Application For Windows Azure And Sql Azure

Page 18

Blobs

Page 19: Building An Application For Windows Azure And Sql Azure

Page 19

Queues

Page 20: Building An Application For Windows Azure And Sql Azure

Page 20

Portal

Page 21: Building An Application For Windows Azure And Sql Azure

Page 21

To deploy you need an account

http://bit.ly/azure25

http://bit.ly/azuremsdnfree

Page 22: Building An Application For Windows Azure And Sql Azure

Page 22

Demo

Page 23: Building An Application For Windows Azure And Sql Azure

Page 23

SQL Azure

Page 24: Building An Application For Windows Azure And Sql Azure

Page 24

SQL Azure

+

Page 25: Building An Application For Windows Azure And Sql Azure

Page 25

SQL Azure Application Architectures

T-SQL (TDS)

Application / ToolsApplication / Tools

SQL Azure access from outside

Code Far

SQL AzureSQL Azure

SOAP/RESTHTTP/S

SQL Azure access from within Datacenter

Windows Azure

T-SQL (TDS)

Web RoleWeb Role

ADO.NET Data Svcs/REST - EFHTTP/S

SQL AzureSQL Azure

Application/ BrowserApplication/ Browser

Code Near

Page 26: Building An Application For Windows Azure And Sql Azure

Page 26

Demo

Page 27: Building An Application For Windows Azure And Sql Azure

Page 27

Summary

• Same Development Tools and Experience

• Local and Cloud Based Environments• Rapid Cloud Development,

Deployment and Maintenance• UK Site http://bit.ly/landazure• UK Community http://bit.ly/ukazure • My blog http://bit.ly/iupdateable

Page 28: Building An Application For Windows Azure And Sql Azure

Page 28

UK Pricing – standard rates

• Windows Azure– Compute

• Small instance (default): £0.0728 per hour

• Medium instance: £0.1455 per hour

• Large instance: £0.291 per hour • Extra large instance: £0.5819 per

hour

– Storage • £0.091 per GB stored per month • £0.0061 per 10,000 storage

transactions

– Content Delivery Network (CDN) • Service currently available as a

Community Technology Preview (CTP) at no charge

• SQL Azure– Web Edition – Up to 1 GB relational

database • £6.055 per database per month

– Business Edition – Up to 10 GB relational database • £60.604 per database per month

• AppFabric– Access Control

• £1.2062 per 100,000 transactions*

– Service Bus • £2.4184 per connection on a “pay-

as-you-go” basis* • Pack of 5 connections £6.0307* • Pack of 25 connections £30.1535* • Pack of 100 connections

£120.6139* • Pack of 500 connections

£603.0695*

• Data Transfers– North America and Europe regions

• £0.0607 per GB in • £0.091 per GB out

– Asia Pacific Region • £0.1819 per GB in • £0.2728 per GB out

– Inbound data transfers during off-peak times through June 30, 2010 are at no charge.  Prices revert to our normal inbound data transfer rates after June 30, 2010.

£100 per month* - Highly Available Web Application + 0.5TB data 20 pence per day* - Highly Available SQL Server database

£100 per month* - Highly Available Web Application + 0.5TB data 20 pence per day* - Highly Available SQL Server database

Page 29: Building An Application For Windows Azure And Sql Azure

Page 29

Feedback on Azure

• Are you impressed or underwhelmed?• Is it relevant to you?• Where are we missing a trick?• What features do you need?• What could we do to help?• What blockers do you see?

• Send to [email protected] • www.mygreatwindowsazureidea.

com

29

Page 30: Building An Application For Windows Azure And Sql Azure

Page 30

And a very big thank you! http://bit.ly/landazure

http://bit.ly/iupdateable

Page 31: Building An Application For Windows Azure And Sql Azure

Page 31

Appendix

Page 32: Building An Application For Windows Azure And Sql Azure

Page 32

UK Pricing – standard rates

• Windows Azure– Compute

• Small instance (default): £0.0728 per hour

• Medium instance: £0.1455 per hour

• Large instance: £0.291 per hour • Extra large instance: £0.5819 per

hour

– Storage • £0.091 per GB stored per month • £0.0061 per 10,000 storage

transactions

– Content Delivery Network (CDN) • Service currently available as a

Community Technology Preview (CTP) at no charge

• SQL Azure– Web Edition – Up to 1 GB relational

database • £6.055 per database per month

– Business Edition – Up to 10 GB relational database • £60.604 per database per month

• AppFabric– Access Control

• £1.2062 per 100,000 transactions*

– Service Bus • £2.4184 per connection on a “pay-

as-you-go” basis* • Pack of 5 connections £6.0307* • Pack of 25 connections £30.1535* • Pack of 100 connections

£120.6139* • Pack of 500 connections

£603.0695*

• Data Transfers– North America and Europe regions

• £0.0607 per GB in • £0.091 per GB out

– Asia Pacific Region • £0.1819 per GB in • £0.2728 per GB out

– Inbound data transfers during off-peak times through June 30, 2010 are at no charge.  Prices revert to our normal inbound data transfer rates after June 30, 2010.

Page 33: Building An Application For Windows Azure And Sql Azure

Page 33

Screenshots

Page 34: Building An Application For Windows Azure And Sql Azure

Page 34

New Project

Page 35: Building An Application For Windows Azure And Sql Azure

Page 35

Add a Role

Page 36: Building An Application For Windows Azure And Sql Azure

Page 36

Write Some Code

Page 37: Building An Application For Windows Azure And Sql Azure

Page 37

Run and Debug Locally (Hit F5)

Page 38: Building An Application For Windows Azure And Sql Azure

Page 38

Deploy to the Cloud

Page 39: Building An Application For Windows Azure And Sql Azure

Page 39

Create Your Accounts

Page 40: Building An Application For Windows Azure And Sql Azure

Page 40

Deploy Your Service

Page 41: Building An Application For Windows Azure And Sql Azure

Page 41

Portal – Allocated

Page 42: Building An Application For Windows Azure And Sql Azure

Page 42

Portal - Run

Page 43: Building An Application For Windows Azure And Sql Azure

Page 43

Portal - Initializing

Page 44: Building An Application For Windows Azure And Sql Azure

Page 44

Portal - Busy

Page 45: Building An Application For Windows Azure And Sql Azure

Page 45

Portal - Ready

Page 46: Building An Application For Windows Azure And Sql Azure

Page 46

My Windows Azure screenshots

Page 47: Building An Application For Windows Azure And Sql Azure

Page 47

Page 48: Building An Application For Windows Azure And Sql Azure

Page 48

Page 49: Building An Application For Windows Azure And Sql Azure

Page 49

Page 50: Building An Application For Windows Azure And Sql Azure

Page 50

Page 51: Building An Application For Windows Azure And Sql Azure

Page 51

My SQL Azure screenshots

Page 52: Building An Application For Windows Azure And Sql Azure

Page 52

Page 53: Building An Application For Windows Azure And Sql Azure

Page 53

Page 54: Building An Application For Windows Azure And Sql Azure

Page 54

Page 55: Building An Application For Windows Azure And Sql Azure

Page 55

Page 56: Building An Application For Windows Azure And Sql Azure

Page 56

Page 57: Building An Application For Windows Azure And Sql Azure

Page 57

Page 58: Building An Application For Windows Azure And Sql Azure

Page 58

Server: Network Access Control

• Each server defines a set of firewall rules– Determines access policy based on client

IP– By default, there is NO ACCESS to server

• Controlled using Firewall API (masterDB)– sys.firewall_rules,

sys.sp_merge_firewall_rule and sys.sp_delete_firewall_rule

Page 59: Building An Application For Windows Azure And Sql Azure

Page 59

Server: Billing and Reporting

• Usage metrics from views:– sys.bandwidth_usage– sys.database_usage

• Bandwidth shows ingress/egress/type in KB

• Database shows number/type