Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Ten CloudDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
Shlomo Swidler<br />Founder, Orchestratus<br />Strategic and technicalIT consulting<br />Customers include:<br />Cloud Dev...
Ten CloudDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
Ten Cloud ApplicationDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
Ten Cloud ApplicationDesign Patterns<br />Many<br />Shlomo SwidlerFounderOrchestratus<br />
What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />6<br />
What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />AKA ...
What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />Goal...
A Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />Meets affirm...
Challenges Faced by Apps in the Cloud<br />Application Scalability<br />Cloud promises rapid (de)provisioning of resources...
The Scalability Challenge<br />Scalability: Handle more (or fewer) requests<br />It’s not Performance (handle requests fas...
The Scalability Challenge<br />Two different components to scale:<br />State (inputs, data store, output)<br />Behavior (b...
App Scalability Patterns for State <br />Data Grids<br />Distributed Caching<br />HTTP Caching<br />Reverse Proxy<br />CDN...
App Scalability Patterns for Behavior<br />Compute Grids<br />Event-Driven Architecture<br />Messaging<br />Actors<br />En...
The Availability Challenge<br />Availability: Tolerate failures<br />Traditional IT focuses on increasing MTTF<br />Mean T...
The Availability Challenge<br />Availability: Tolerate failures<br />Traditional IT focuses on increasing MTTF<br />Mean T...
Availability and MTTF, MTTR<br />17<br />
Availability and MTTF, MTTR<br />Uptime<br />53%<br />86%<br />69%<br />30%<br />18<br />
Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />69%<br />30%<br />19<br />
Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />Cloud<br />69%<br />30%<br />20<br />
Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />Cloud<br />69%<br />30%<br />Cloud done...
Design Patterns for Availability<br />Pattern: Replication<br />Pattern: Fail-Over<br />Often used together.<br />22<br />
Availability Pattern: Fail-Over<br />Source: Michael Nygaard<br />23<br />
Availability Pattern: Fail-Over<br />In practice, fail-over is not this simple<br />Source: Michael Nygaard<br />24<br />
Availability Pattern: Fail-Over<br />Source: Michael Nygaard<br />25<br />
Availability Pattern: Fail-Over with Fail-Back<br />Source: Michael Nygaard<br />26<br />
Availability’s Nemesis<br />Single Points of Failure<br />27<br />
SPOT the SPOF*<br />*Single Point of Failure<br />
Spot the SPOF: 1<br />29<br />Internet<br />Cloud<br />App<br />App Instance<br />
Spot the SPOF: 1b<br />30<br />Internet<br />Cloud<br />App<br />App Instance<br />
Spot the SPOF: 1b<br />31<br />Internet<br />Cloud<br />App<br />App Instance<br />
Spot the SPOF:2<br />32<br />Internet<br />Elastic IP Address<br />Cloud<br />App<br />App<br />App Instance<br />App Inst...
Spot the SPOF:2<br />33<br />Internet<br />Might work…<br />Until you need more App instances<br />Or until another SPOF f...
Spot the SPOF: 2a<br />34<br />Internet<br />LB<br />Load Balancer Instance<br />Cloud<br />App<br />App<br />
Spot the SPOF: 2a<br />35<br />Internet<br />LB<br />Load Balancer Instance<br />Cloud<br />App<br />App<br />
Spot the SPOF: 3<br />36<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Replicated conf...
Spot the SPOF: 3<br />37<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Replicated conf...
Spot the SPOF: 4<br />38<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Cloud<br />...
Spot the SPOF: 4<br />39<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Cloud<br />...
Spot the SPOF: 5<br />40<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Availability Zo...
Spot the SPOF: 5<br />41<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Availability Zo...
Spot the SPOF: 6<br />42<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Availabilit...
Spot the SPOF: 6<br />43<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Availabilit...
Spot the SPOF: 7<br />44<br />Internet<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />...
Spot the SPOF: 7a<br />45<br />Internet<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br /...
Spot the SPOF: 7/7a<br />46<br />Internet<br />Elastic IPs are<br />single-region only<br />LB<br />LB<br />LB<br />LB<br ...
Spot the SPOF: 7b<br />47<br />Internet<br />ELB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br /...
Spot the SPOF: 7b<br />48<br />Internet<br />ELB is single-region only<br />ELB<br />Availability Zone<br />Availability Z...
Spot the SPOF: 7c<br />49<br />Internet<br />DNS<br />ELB<br />ELB<br />Availability Zone<br />Availability Zone<br />Avai...
Spot the SPOF: 7c<br />50<br />Internet<br />ELB Can’t Do That<br />Multiple CNAMEs Violate RFC 2181<br />DNS<br />ELB<br ...
Spot the SPOF: 7d<br />51<br />Internet<br />DNS<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability ...
Spot the SPOF: 7d<br />52<br />Internet<br />DNS<br />Cloud Provider<br />LB<br />LB<br />LB<br />LB<br />Availability Zon...
Spot the SPOF: 8<br />Internet<br />DNS<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability ...
Spot the SPOF: 8<br />Internet<br />DNS<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability ...
Spot the SPOF: 8<br />Internet<br />DNS<br />and...<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />A...
Spot the SPOF: 8<br />Internet<br />Fail-over<br />mechanism<br />DNS<br />and...<br />AWS<br />LB<br />LB<br />LB<br />LB...
Spot the SPOF: 8<br />Internet<br />Fail-over<br />mechanism<br />DNS<br />and...<br />Ops staff<br />and<br />AWS<br />LB...
Availability: Ensure Redundancies<br />Physical<br />Virtual resource (instance, disk, etc.)<br />Availability zone<br />R...
Availability Best Practice:Chaos Monkey<br />AKA Error Injection Testing<br />Forcibly create fault conditions in your clo...
For more on Designing forAvailability, Scalability<br />Jonas BonérScalability, Availability, Stability Patterns  http://s...
Ten Cloud ApplicationDesign Patterns<br />Thank you!<br />Many<br />Shlomo SwidlerFounderOrchestratus<br />shlomo@orchestr...
Upcoming SlideShare
Loading in …5
×

Ten^H^H^H Many Cloud App Design Patterns

21,435 views

Published on

What kind of design patterns are useful for applications adopting the cloud? How can apps achieve the scalability and availability promised by the cloud? Presentation from Interop 2011 Enterprise Cloud Summit.

Published in: Technology
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download Full EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download Full doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download PDF EBOOK here { https://soo.gd/irt2 } ......................................................................................................................... Download EPUB Ebook here { https://soo.gd/irt2 } ......................................................................................................................... Download doc Ebook here { https://soo.gd/irt2 } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy &amp; Proven Way to Build Good Habits &amp; Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

Ten^H^H^H Many Cloud App Design Patterns

  1. 1. Ten CloudDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
  2. 2. Shlomo Swidler<br />Founder, Orchestratus<br />Strategic and technicalIT consulting<br />Customers include:<br />Cloud Developer Tips bloghttp://shlomoswidler.com/<br />Among top community-ranked contributors to Amazon Web Services discussion forums<br />2<br />
  3. 3. Ten CloudDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
  4. 4. Ten Cloud ApplicationDesign Patterns<br />Shlomo SwidlerFounderOrchestratus<br />
  5. 5. Ten Cloud ApplicationDesign Patterns<br />Many<br />Shlomo SwidlerFounderOrchestratus<br />
  6. 6. What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />6<br />
  7. 7. What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />AKA Architectural Pattern<br />7<br />
  8. 8. What is a Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />Goal<br />AvailableResources<br />Constraints<br />8<br />
  9. 9. A Design Pattern<br />A reusable recipe for building (software) systems that solve a particular problem.<br />Meets affirmativerequirements<br />Goal<br />Does not violatenegative requirements<br />AvailableResources<br />Constraints<br />Can be implemented<br />9<br />
  10. 10. Challenges Faced by Apps in the Cloud<br />Application Scalability<br />Cloud promises rapid (de)provisioning of resources.<br />How do you tap into that to create scalable systems?<br />Application Availability<br />Underlying resource failures happen … usually more frequently than in traditional data centers.<br />How do you overcome that to create highly available systems?<br />10<br />
  11. 11. The Scalability Challenge<br />Scalability: Handle more (or fewer) requests<br />It’s not Performance (handle requests faster)<br />It’s not Availability (tolerate failures)<br />But improving Scalability often improves Availability<br />11<br />
  12. 12. The Scalability Challenge<br />Two different components to scale:<br />State (inputs, data store, output)<br />Behavior (business logic)<br />Any non-trivial application has both.<br />Scaling one component means scaling the other, too.<br />12<br />
  13. 13. App Scalability Patterns for State <br />Data Grids<br />Distributed Caching<br />HTTP Caching<br />Reverse Proxy<br />CDN<br />Concurrency<br />Message-Passing<br />Dataflow<br />Software Transactional Memory<br />Shared-State<br />Partitioning<br />CAP theorem: Data Consistency<br />Eventually Consistent<br />Atomic Data<br />DB Strategies<br />RDBMS<br />Denormalization<br />Sharding<br />NOSQL<br />Key-Value store<br />Document store<br />Data Structure store<br />Graph database<br />13<br />
  14. 14. App Scalability Patterns for Behavior<br />Compute Grids<br />Event-Driven Architecture<br />Messaging<br />Actors<br />Enterprise Service Bus<br />Domain Events<br />Event Stream Processing<br />Event Sourcing<br />Command & Query Responsibility Segregation (CQRS)<br />Load Balancing<br />Round-robin<br />Random<br />Weighted<br />Dynamic<br />Parallel Computing<br />Master/Worker<br />Fork/Join<br />MapReduce<br />SPMD<br />Loop Parallelism<br />14<br />
  15. 15. The Availability Challenge<br />Availability: Tolerate failures<br />Traditional IT focuses on increasing MTTF<br />Mean Time to Failure<br />Cloud IT focuses on reducing MTTR<br />Mean Time to Recovery<br />15<br />
  16. 16. The Availability Challenge<br />Availability: Tolerate failures<br />Traditional IT focuses on increasing MTTF<br />Mean Time to Failure<br />Cloud IT focuses on reducing MTTR<br />Mean Time to Recovery<br />What follows is four availability scenarios: [low, high] X [MTTF, MTTR]<br />16<br />
  17. 17. Availability and MTTF, MTTR<br />17<br />
  18. 18. Availability and MTTF, MTTR<br />Uptime<br />53%<br />86%<br />69%<br />30%<br />18<br />
  19. 19. Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />69%<br />30%<br />19<br />
  20. 20. Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />Cloud<br />69%<br />30%<br />20<br />
  21. 21. Availability and MTTF, MTTR<br />Traditional IT<br />Uptime<br />53%<br />86%<br />Cloud<br />69%<br />30%<br />Cloud done wrong<br />21<br />
  22. 22. Design Patterns for Availability<br />Pattern: Replication<br />Pattern: Fail-Over<br />Often used together.<br />22<br />
  23. 23. Availability Pattern: Fail-Over<br />Source: Michael Nygaard<br />23<br />
  24. 24. Availability Pattern: Fail-Over<br />In practice, fail-over is not this simple<br />Source: Michael Nygaard<br />24<br />
  25. 25. Availability Pattern: Fail-Over<br />Source: Michael Nygaard<br />25<br />
  26. 26. Availability Pattern: Fail-Over with Fail-Back<br />Source: Michael Nygaard<br />26<br />
  27. 27. Availability’s Nemesis<br />Single Points of Failure<br />27<br />
  28. 28. SPOT the SPOF*<br />*Single Point of Failure<br />
  29. 29. Spot the SPOF: 1<br />29<br />Internet<br />Cloud<br />App<br />App Instance<br />
  30. 30. Spot the SPOF: 1b<br />30<br />Internet<br />Cloud<br />App<br />App Instance<br />
  31. 31. Spot the SPOF: 1b<br />31<br />Internet<br />Cloud<br />App<br />App Instance<br />
  32. 32. Spot the SPOF:2<br />32<br />Internet<br />Elastic IP Address<br />Cloud<br />App<br />App<br />App Instance<br />App Instance<br />Fail-over<br />
  33. 33. Spot the SPOF:2<br />33<br />Internet<br />Might work…<br />Until you need more App instances<br />Or until another SPOF fails…<br />Elastic IP Address<br />Cloud<br />App<br />App<br />App Instance<br />App Instance<br />Fail-over<br />
  34. 34. Spot the SPOF: 2a<br />34<br />Internet<br />LB<br />Load Balancer Instance<br />Cloud<br />App<br />App<br />
  35. 35. Spot the SPOF: 2a<br />35<br />Internet<br />LB<br />Load Balancer Instance<br />Cloud<br />App<br />App<br />
  36. 36. Spot the SPOF: 3<br />36<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Replicated configuration<br />Cloud<br />App<br />App<br />Fail-over<br />
  37. 37. Spot the SPOF: 3<br />37<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Replicated configuration<br />Cloud<br />App<br />App<br />Fail-over<br />
  38. 38. Spot the SPOF: 4<br />38<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Cloud<br />App<br />App<br />
  39. 39. Spot the SPOF: 4<br />39<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Cloud<br />App<br />App<br />
  40. 40. Spot the SPOF: 5<br />40<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Replicated configuration<br />Region<br />App<br />App<br />App<br />App<br />Fail-over<br />
  41. 41. Spot the SPOF: 5<br />41<br />Internet<br />Elastic IP Address<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Replicated configuration<br />Region<br />App<br />App<br />App<br />App<br />Fail-over<br />
  42. 42. Spot the SPOF: 6<br />42<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Availability Zone<br />Region<br />App<br />App<br />App<br />App<br />
  43. 43. Spot the SPOF: 6<br />43<br />Internet<br />Elastic Load Balancer (Magic)<br />ELB<br />Availability Zone<br />Availability Zone<br />Region<br />App<br />App<br />App<br />App<br />
  44. 44. Spot the SPOF: 7<br />44<br />Internet<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />Or…<br />
  45. 45. Spot the SPOF: 7a<br />45<br />Internet<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  46. 46. Spot the SPOF: 7/7a<br />46<br />Internet<br />Elastic IPs are<br />single-region only<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  47. 47. Spot the SPOF: 7b<br />47<br />Internet<br />ELB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  48. 48. Spot the SPOF: 7b<br />48<br />Internet<br />ELB is single-region only<br />ELB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  49. 49. Spot the SPOF: 7c<br />49<br />Internet<br />DNS<br />ELB<br />ELB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  50. 50. Spot the SPOF: 7c<br />50<br />Internet<br />ELB Can’t Do That<br />Multiple CNAMEs Violate RFC 2181<br />DNS<br />ELB<br />ELB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  51. 51. Spot the SPOF: 7d<br />51<br />Internet<br />DNS<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  52. 52. Spot the SPOF: 7d<br />52<br />Internet<br />DNS<br />Cloud Provider<br />LB<br />LB<br />LB<br />LB<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />
  53. 53. Spot the SPOF: 8<br />Internet<br />DNS<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />53<br />
  54. 54. Spot the SPOF: 8<br />Internet<br />DNS<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />54<br />
  55. 55. Spot the SPOF: 8<br />Internet<br />DNS<br />and...<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />55<br />
  56. 56. Spot the SPOF: 8<br />Internet<br />Fail-over<br />mechanism<br />DNS<br />and...<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />56<br />
  57. 57. Spot the SPOF: 8<br />Internet<br />Fail-over<br />mechanism<br />DNS<br />and...<br />Ops staff<br />and<br />AWS<br />LB<br />LB<br />LB<br />LB<br />LB<br />Rackspace<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />Availability Zone<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />App<br />Region<br />Region<br />57<br />
  58. 58. Availability: Ensure Redundancies<br />Physical<br />Virtual resource (instance, disk, etc.)<br />Availability zone<br />Region<br />Provider<br />Human (ops staff)<br />58<br />
  59. 59. Availability Best Practice:Chaos Monkey<br />AKA Error Injection Testing<br />Forcibly create fault conditions in your cloud components.<br />Kill instances, detach disks, screw up DNS, etc.<br />Automate recovery from the errors.<br />The team gets really good at reducing MTTR, increasing availability!<br />Popularized by Netflix, who run it on their live environment.<br />59<br />
  60. 60. For more on Designing forAvailability, Scalability<br />Jonas BonérScalability, Availability, Stability Patterns http://slidesha.re/cK3NJv<br />George ReeseThe AWS Outage: The Cloud’s Shining Momenthttp://oreil.ly/eKCGG9<br />John Ciancutti of Netflix5 Lessons We’ve Learned Using AWShttp://bit.ly/h8rU8b<br />60<br />
  61. 61. Ten Cloud ApplicationDesign Patterns<br />Thank you!<br />Many<br />Shlomo SwidlerFounderOrchestratus<br />shlomo@orchestratus.com<br />@ShlomoSwidler<br />

×