Presentation is loading. Please wait.

Presentation is loading. Please wait.

WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Web app developers who are already familiar with Windows Azure with scaling needs. Asynchronous.

Similar presentations


Presentation on theme: "WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Web app developers who are already familiar with Windows Azure with scaling needs. Asynchronous."— Presentation transcript:

1

2 WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Web app developers who are already familiar with Windows Azure with scaling needs. Asynchronous patterns & techniques Managing data access Tuning application performance Windows Azure helps you build scalable web apps using the approaches that you’re already familiar with.

3 Thread blocks Waiting…

4 Thread Context

5 void UploadImage(Stream image, CloudBlob destBlob) { // Add image to list in SQL Azure AddImageToSQLAzure(destBlob.Uri); // Upload image to blob storage UploadImageToBlob(image, destBlob); } async Task UploadImageAsync(Stream image, CloudBlob destBlob) { // Add image to list in SQL Azure var t1 = AddImageToSQLAzureAsync(destBlob.Uri); // Upload image to blob storage var t2 = UploadImageToBlobAsync(image, destBlob); await TaskEx.WhenAll(t1, t2); } But how do we make one of these?

6 void UploadImageToBlob (Stream image, CloudBlob destBlob) { destBlob.UploadFromStream(image); } async Task UploadImageToBlobAsync (Stream image, CloudBlob destBlob) { // Task.Factory.FromAsync method creates a Task or Task to // represent a Begin/End async invocation await Task.Factory.FromAsync (destBlob.BeginUploadFromStream, destBlob.EndUploadFromStream, image, null); }

7

8 Hosted Compute Blob Storage Blob Storage Hosted Compute

9 X X Non-public blob (e.g. paid or ad- funded content) Non-public blob (e.g. paid or ad- funded content) 1. “I am Bob & I want X” 2. Service prepares a Shared Access Signature (SAS) to X using the securely stored storage account key 3. Service returns SAS (signed HTTPS URL) 4. Bob uses SAS to access X directly from Blob Storage for reduced latency & compute load

10 X X Public container CDN X X Blob header determines time-to-live at the edge Closest Point of Presence DNS name resolves to closest POP

11

12 logo.2011-08-01.png logo.2011-09-16.png logo.2011-08-01.png … logo.2011-09-16.png

13

14 Traffic Manager Monitoring Policies foo-us.cloudapp.net foo-europe.cloudapp.net foo-asia.cloudapp.net

15 Monitoring foo-us.cloudapp.net foo-europe.cloudapp.net foo-asia.cloudapp.net /monitoring/testme.aspx

16 Hosted Compute Table Storage SQL Azure Table Storage SQL Azure

17

18 Hosted Compute Partitioned Table Queue WA Storage Acct Blob Partitioned Table Queue WA Storage Acct Blob Partitioned Table Queue WA Storage Acct Blob

19

20

21

22 Asynchronous Hosted Compute Synchronous Hosted Compute Private Public CDN Public Table Storage SQL Azure Table Storage SQL Azure Tuning Traffic Mgr Web App

23 Building Global and Highly Available Services Using Windows Azure Building IIS and ASP.NET Applications with the Power of Async Building Parallelized Applications with.NET and Visual Studio Optimize Your Website Using ASP.NET and IIS8 The Zen of Async: Best Practices for Best Performance RELATED SESSIONS DOCUMENTATION & ARTICLES CONTACT: matthew.kerner@microsoft.com Tutorials for improving performance on Windows Azure: http://www.microsoft.com/windowsa zure/learn/improve-performance/ http://www.microsoft.com/windowsa zure/learn/improve-performance/

24

25

26


Download ppt "WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Web app developers who are already familiar with Windows Azure with scaling needs. Asynchronous."

Similar presentations


Ads by Google