building scalable cloud applications david aiken windows azure technical specialist microsoft...

24
Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Upload: thomasine-mitchell

Post on 18-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Building Scalable Cloud Applications

David AikenWindows Azure Technical SpecialistMicrosoft Corporation

Page 2: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

If the number of users/tasks in increases, can your application handle that?

Page 3: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1 Scale out

Page 4: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Web ServerCapability: 1000 requests/sec

Web ServerCapability: 1000 requests/sec

Load Balancer

State

Page 5: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Scaling Out with Windows Azure

demo

Page 6: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Web ServerCapability: 1000 requests/sec

Web ServerCapability: 1000 requests/sec

Load Balancer

State

Page 7: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1 Instance versus 5 Instances

Page 8: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Load Test 1000 Users1 Instance

• Max User Load 600 • Tests/Sec 1.69 • Tests Failed 371• Avg. Test Time (sec) 90.9 • Pages/Sec 5.43 • Avg. Page Time (sec) 34.3 • Requests/Sec 33.8 • Requests Failed 583 • Avg. Response Time (sec)

5.57

5 Instances

• Max User Load 600• Tests/Sec 13.9• Tests Failed 0• Avg. Test Time (sec) 21.1• Pages/Sec 43.5• Avg. Page Time (sec) 1.61• Requests/Sec 246• Requests Failed 0• Avg. Response Time (sec)

0.32

Page 9: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1

2

Scale out

Decouple tasks

Page 10: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Blob Storage

Web Role

Page 11: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Q

Worker Role

Blob Storage

Web Role

Page 12: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Scaling Out with Worker Roles

demo

Page 13: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Q

Worker Role

Blob Storage

Web Role

Page 14: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1000 runs

1 Instance 5 Instance 5 Instance Worker

Max User Load 600 600 600Test/Sec 1.69 13.9 15.2Tests Failed 371 0 0Avg. Test Time (sec) 90.9 21.1 19.5Pages/Sec 5.43 43.5 47.2Avg. Page Time (sec) 34.3 1.61 1.06Requests/Sec 33.8 246 262Requests Failed 538 0 0Avg. Response Time (sec) 5.57 0.32 0.22

Page 15: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1

2

3

Scale out

Decouple tasks

Cache static content

Page 16: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

* We don’t actually have endpoints in these places.

Page 17: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Serve Content from the Edge24 global locations with 99.95% availability

CDN now works for web apps, not just for public blobs

CDN Blob StorageClosest Point of Presence

Possibly many hops or poor links

Few hops

Page 18: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Scaling Out with the CDN

demo

Page 19: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

1

2

3

4

Scale out

Decouple tasks

Cache static content

Scale across data centers

Page 20: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation
Page 21: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Windows Azure Traffic Manager

Policies Monitoring

www.foo.net

DNS response

1.2.3.4

Page 22: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Scaling Out with Traffic Manager

demo

Page 23: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

Summary1

2

3

4

5

Scale out – Tell us how many, we do the rest!

Use Workers and Queues to decouple expensive tasks

Use the CDN to cache static content

Use Traffic Manager to scale out across datacenters

Use Data Sync to synchronize data between datacenters

Page 24: Building Scalable Cloud Applications David Aiken Windows Azure Technical Specialist Microsoft Corporation

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.