patterns for cloud computing n.
Download
Skip this Video
Loading SlideShow in 5 Seconds..
Patterns For Cloud Computing PowerPoint Presentation
Download Presentation
Patterns For Cloud Computing

Loading in 2 Seconds...

play fullscreen
1 / 122

Patterns For Cloud Computing - PowerPoint PPT Presentation


  • 72 Views
  • Updated on

Patterns For Cloud Computing. David Gristwood Application Architect Microsoft http://blogs.msdn.com/david_gristwood / @ ScroffTheBad. Provide you with 5 patterns for cloud-based applications. Show implementations of these patterns. #1 - Using the Cloud for Scale.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

Patterns For Cloud Computing


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
    Presentation Transcript
    1. Patterns For Cloud Computing David Gristwood Application Architect Microsoft http://blogs.msdn.com/david_gristwood/ @ScroffTheBad

    2. Provide you with 5 patterns for cloud-based applications Show implementations of these patterns

    3. #1 - Using the Cloud for Scale Patterns for Cloud Computing

    4. #1 - Using the Cloud for Scale • “Wow! What a great site!” Database • Request Web Tier B/L Tier Browser • Response

    5. #1 - Using the Cloud for Scale Browser Browser Database Web Tier B/L Tier Browser • “Server Busy” Browser Browser

    6. #1 - Using the Cloud for Scale Browser Browser Database Web Tier B/L Tier Browser • “Timeout” Browser Browser

    7. #1 - Using the Cloud for Scale How would you do this today on premises? Browser Web Tier N L B Browser Database Web Tier B/L Tier Browser Browser Web Tier Browser

    8. #1 - Using the Cloud for Scale How would you do this today on premises? Browser B/L Tier N L B Browser Database Web Tier Browser B/L Tier Browser B/L Tier Browser

    9. #1 - Using the Cloud for Scale How would you do this today on premises? Browser Web Tier N L B B/L Tier N L B Browser Database Web Tier Browser B/L Tier Browser Web Tier B/L Tier Browser

    10. #1 - Using the Cloud for Scale How would you do this today on premises? Browser • p1 p2 p3 Web Tier N L B B/L Tier N L B Browser Database Web Tier Browser B/L Tier Browser Web Tier B/L Tier Browser

    11. Not without consequences...

    12. #1 - Using the Cloud for Scale How would you do this today on premises? Browser • p1 p2 p3 Web Tier N L B B/L Tier N L B Browser Database Web Tier Browser B/L Tier Browser Web Tier B/L Tier Browser • “That took a lot of time, effort and money!”

    13. #1 - Using the Cloud for Scale How would you do this today on premises? • p1 p2 p3 • “Not so great now…” Web Tier N L B B/L Tier N L B Database Web Tier Browser B/L Tier Web Tier B/L Tier • “That took a lot of time, effort and money!” • “Hmmm... Most of this stuff is sitting idle...”

    14. #1 - Using the Cloud for Scale • Datacenter peak load • Idle time • Usage • Jan • Apr • Jul • Oct

    15. How can cloud computing help?

    16. #1 - Using the Cloud for Scale • “Wow! What a great site!” Azure Storage • Request Web Role Worker Role Browser • Response

    17. #1 - Using the Cloud for Scale Browser Browser Azure Storage Web Role Worker Role Browser • “Server Busy” Browser Browser

    18. #1 - Using the Cloud for Scale Browser Web Role N L B Browser AzureStorage Web Role Worker Role Browser Browser Web Role Browser • You don’t see this bit

    19. #1 - Using the Cloud for Scale Browser Web Role N L B Worker Role N L B Browser AzureStorage Web Role Browser Worker Role Browser Web Role Worker Role Browser

    20. OK, so changing config is easy... …but what else do I need to know?

    21. #1 - Using the Cloud for Scale Browser Web Role N L B Worker Role N L B Browser AzureStorage Web Role Browser Worker Role Browser Web Role Worker Role Browser

    22. #1 - Using the Cloud for Scale Browser Web Role N L B Worker Role N L B Browser AzureStorage Web Role Browser Worker Role Browser Web Role Worker Role Browser • Tight coupling between web and worker role is an anti-pattern

    23. #1 - Using the Cloud for Scale 4. Process Web Role Worker Role 2. Respond to UI Req 1. Place on queue 3. Pickup from queue Queue

    24. #1 - Using the Cloud for Scale 4. Process Web Role Worker Role 5. Add result to table Req Queue 6. Query table on refresh Table

    25. Demo #1: Prime Solver

    26. How many web and worker roles do you need?

    27. How many web and worker roles do you need?

    28. #1 - Using the Cloud for Scale WMI_Win32_PerfFormattedData_ASPNET_ASPNETApplications /RequestsPerSecond Browser Web Role N L B Browser AzureStorage Web Role Worker Role Browser Browser Web Role Browser Log Management API or Email Worker Role

    29. How many web and worker roles do you need?

    30. #1 - Using the Cloud for Scale Web Role Web Role Web Role Worker Role Req Req Req Queue Web Role Web Role • Monitor queue • length against user’s expectations Web Role

    31. #1 - Using the Cloud for Scale Worker Role Web Role Worker Role Web Role Worker Role Web Role Req Req Req Queue Worker Role Web Role Worker Role Web Role • Monitor queue • length against user’s expectations Worker Role Web Role

    32. Patterns for Cloud Computing Takeaways A core tenet of cloud computing is the ability to scale up & down Understand how to communicate between roles and nodes Strategy on when to scale up/down roles in production

    33. Patterns for Moving to the Cloud #2 - Using the Cloud for Multi-Tenancy

    34. #2 - Using the Cloud for Multi Tenancy How would you do this today on premises? Database Web Tier B/L Tier Browser • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 Database Web Tier B/L Tier Browser • Customer #3

    35. Gets expensive pretty quickly

    36. #2 - Using the Cloud for Multi Tenancy What you really want is this: Browser • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 Browser • Customer #3

    37. Schema CustomizationsUI Customizations

    38. Schema CustomizationsUI Customizations

    39. 3 options for data in multi tenant environment

    40. #2 - Using the Cloud for Multi Tenancy Browser • Fixed Schema • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 Browser • Option 1: Everyone Uses the Same Database/Schema • Customer #3 • Pros: Simplest approach, easy to maintain/upgrade. • Cons: No customizations. Restoring of tenant data.

    41. #2 - Using the Cloud for Multi Tenancy Database Browser • Customer #1 • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 • Customer #2 Database Browser • Customer #3 • Customer #3 • Option 2: Give Each Customer Their Own Database/Schema • Pros: Flexible. Tenant restore is easier. High Isolation. • Cons: Can be costly. Difficult to upgrade db schemas.

    42. #2 - Using the Cloud for Multi Tenancy • Fixed Schema • with Customizations Browser • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 Browser • Option 3: Fixed Database/Schema, with customizations • Customer #3 • Pros: Customers can add their own custom fields • Cons: Non standard way of customizing the schema. Tenant restore is difficult.

    43. #2 - Using the Cloud for Multi Tenancy Tenant 1 * int TenantID nvarchar TenantName * * Type Employee int TypeID int EmployeeId nvarchar Name nvarchar FirstName nvarchar nvarchar CLRType LastName 1 1 Customization int CustomizationID * * nvarchar Value

    44. #2 - Using the Cloud for Multi Tenancy Tenant 1 * int TenantID Fixed Schema Applies to All Tenants nvarchar TenantName * * Type Employee int TypeID int EmployeeId Customizable Tenant by Tenant Basis nvarchar Name nvarchar FirstName nvarchar nvarchar CLRType LastName 1 1 Customization int CustomizationID * * nvarchar Value

    45. #2 - Using the Cloud for Multi Tenancy Tenant 1 * 1 TenantID UK Branch TenantName * * Type Employee 1 TypeID 1 EmployeeId PostalCode Name Gordon FirstName string Brown CLRType LastName 1 1 Customization 1 CustomizationID * * SW1A 2AA Value

    46. #2 - Using the Cloud for Multi Tenancy Tenant 1 * 2 TenantID US Branch TenantName * * Type Employee 2 TypeID 2 EmployeeId ZipCode Name Barack FirstName string Obama CLRType LastName 1 1 Customization 2 CustomizationID * * 20500 Value

    47. Schema CustomizationsUI Customizations

    48. #2 - Using the Cloud for Multi Tenancy Browser • Customer #1 Database Web Tier B/L Tier Browser • Customer #2 Browser • Customer #3