Presentation is loading. Please wait.

Presentation is loading. Please wait.

Building global and highly-available services using Windows Azure

Similar presentations


Presentation on theme: "Building global and highly-available services using Windows Azure"— Presentation transcript:

1 Building global and highly-available services using Windows Azure
TechReady13 5/3/2019 SAC-869T Building global and highly-available services using Windows Azure 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.

2 Assumptions You know the basics
Web/Worker Roles SQL Azure Windows Azure Storage Asynchronous Programming Windows Azure diagnostics You have deployed a service to Windows Azure Everything can and will (eventually) break

3 Agenda Developers High Availability
WHO WILL BENEFIT FROM THIS TALK TOPICS WHAT YOU’LL LEAVE WITH Developers Who are already familiar with Windows Azure With high availability needs And/or require a global presence High Availability Handling Outages Global Services What Windows Azure provides to help you build highly and/or globally available applications What you have to do to build highly and/or globally available applications

4 Why do services fail? Increased workload Failure Human Hardware
TechReady13 5/3/2019 Why do services fail? Increased workload Failure Hardware Network Platform Service Transient conditions Human Upgrades © 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.

5 What do we mean by available?
Same functionality Degraded functionality Failsafe

6 As the load increases, are you still available?

7 TechReady13 5/3/2019 What is wrong with this? Web Role SQL Azure Web Role Web Role It is better to have 50 x 1GB database than 1 x 50GB database! © 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.

8 What about this? Everything needs to scale! Table Storage Blob Storage
TechReady13 5/3/2019 What about this? Everything needs to scale! Web Role SQL Azure Web Role Load Balancer Web Role Table Storage Worker Role Worker Role Q Blob Storage © 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.

9 As the load increases, are you still available?
Scale everything OUT! Partition data (for size AND performance) Test Test at scale Security Test Feedback Enable Windows Azure Diagnostics* Setup external monitoring *May increase problem – scale that too

10 If platform fails are you still available?

11 Basics – what you get for free
Elasticity Easily deploy compute resources and scale up and down Automated Service Management Windows Azure will (automatically) recover bad nodes Fault Domains Windows Azure deploys services across fault boundaries Storage Resilience 3 copies of storage maintained

12 Fault Tolerance When Windows Azure breaks, it fixes itself!
Can your service? Codifying Operations! Upgrade Domains Configure in ServiceDefinition.csdef <ServiceDefinition name="RedDir" xmlns=" upgradeDomainCount="3"> Transient Datacenter Conditions Do you have Retry Logic?

13 What did you mean, retry logic?
Transient conditions in the datacenter/network/service Example: SQL Azure Error The service is currently busy. Retry the request after 10 seconds. Transient Fault Handling Framework Retry against anything that might be external and have transient conditions*: SQL Azure Windows Azure Storage Service Bus 3rd Party Services

14 Code: Retry . TechReady13 5/3/2019
© 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.

15 How do you upgrade your service?

16 Upgrade Strategies VIP Swap
Foo1.cloudapp.net DNS foo.com Load Balancer (Production) V2 Test GUID.cloudapp.net (Staging)

17 Upgrade Strategies Upgrade
Foo1.cloudapp.net DNS foo.com Load Balancer (Production) Web Worker Web Worker V1 V1 V2 V2 V1 V1 V2 V2 V1 V1 V2 V2

18 Upgrade Strategies New Service & Swap DNS
Foo1.cloudapp.net (Production) DNS foo.com Foo2.cloudapp.net (Production)

19 Thinking Globally

20 Thinking Globally Network latency Global availability
Put compute closer to user. Put data closer to user. Global availability Datacenter outages. Synchronizing data.

21 Network Latency

22 Windows Azure Content Delivery Network
24 global locations with 99.95% availability CDN now works for web apps, not just for public blobs Blob Storage X Public container CDN Blob header determines time-to-live at the edge Few hops Possibly many hops or poor links Closest Point of Presence DNS name resolves to closest POP

23 Windows Azure Traffic Manager
TechReady13 5/3/2019 Windows Azure Traffic Manager Direct users to the service in the closest region with the Windows Azure Traffic Manager foo-us.cloudapp.net foo.cloudapp.net Traffic Manager DNS response foo-europe.cloudapp.net Policies Monitoring foo-asia.cloudapp.net © 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.

24 DEMO: Traffic Manager TechReady13 5/3/2019
© 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.

25 If the compute is closer to the user, what about the dependencies?

26 Windows Azure Platform Services
TechReady13 5/3/2019 Windows Azure Platform Services Windows Azure Service Multi-datacenter deployment strategy What to do on failure Windows Azure Compute Create multiple deployments – user traffic manager to route traffic Traffic Manager should update DNS to clients Windows Azure Storage Role your own synchronization Service Specific implementation SQL Azure Use SQL Azure Data Sync Service Reporting Services Deploy reports to different locations Service Bus Create multiple namespaces Access Control Service Cache Create deployment specific cache(s) Default programming model will handle cache failure © 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.

27 Service Specific Implementations
Does your service fail without that platform service? Can your service use the same platform services from another data center? Can your service not use that platform service temporarily?

28 DEMO: Failover & Synchronizing Data
TechReady13 5/3/2019 DEMO: Failover & Synchronizing Data © 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.

29 Summary Windows Azure gives you high availability capabilities for free Think about scaling out Handle transient conditions Codify operations Automate redeployments etc. Use Global Features for maximum availability & reach Windows Azure Traffic Manager SQL Data Sync

30 thank you Feedback and questions http://forums.dev.windows.com
Session feedback

31 5/3/2019 9:32 PM © 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. © 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.

32


Download ppt "Building global and highly-available services using Windows Azure"

Similar presentations


Ads by Google