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.

From Monolith to Modern Apps: Best Practices (SRV322-R2) - AWS re:Invent 2018

740 views

Published on

We are a lean team consisting of developers, lead architects, business analysts, and a project manager. To scale our applications and optimize costs, we need to reduce the amount of undifferentiated heavy lifting (e.g., patching, server management) from our projects. We have identified AWS serverless services that we will use. However, we need approval from a security and cost perspective. We need to build a business case to justify this paradigm shift for our entire technology organization. In this session, we learn to migrate existing applications and build a strategy and financial model to lay the foundation to build everything in a truly serverless way on AWS.

  • Be the first to comment

From Monolith to Modern Apps: Best Practices (SRV322-R2) - AWS re:Invent 2018

  1. 1. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. From Monolithic to Modern Apps: Best Practices Paras Bhuva Sr. Solutions Architect Amazon Web Services S e s s i o n I D : S R V 3 2 2 - / S R V 3 2 2 - R 1 / S R V 3 2 2 - R 2 Tom Laszewski Enterprise Technologist Amazon Web Services Chris Ingraham Vice President of IT Fender Musical Instruments
  2. 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Learn more at sessions and breakouts Thursday, November 29 Leadership Session: Using DevOps, Microservices, and Serverless to Accelerate Innovation (SRV325) 12:15 – 1:15 PM | Venetian Theatre (Level 2) Wednesday From Monolithic to Modern Apps: Best Practices (SRV322-R1) 6:15 – 7:15 PM | Aria East, Plaza Level, Orovada 2 Thursday From Monolithic to Modern Apps: Best Practices (SRV322-R2) 4:00 – 5:00 PM | MGM, Level 1, Grand Ballroom 119
  3. 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda The Serverless Advantage Trends in the Enterprise Real Time Scenario Voice of the Customer – Fender Modern Application Checklist Q&A
  4. 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  5. 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. THE SERVERLESS OPERATIONAL MODEL No provisioning, no management Pay for value Automatic scaling Highly available and secure
  6. 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS SERVERLESS ADVANTAGE Agility Total Cost efficiency “The size of our team is half of what is normally needed to build and operate a site of this scale.” – Bustle “Using AWS Lambda, we’ve increased cost efficiency by a factor of two.” – FINRA Elasticity “[We have] experienced near-zero downtime and near-zero performance degradation while serving 200-300 million IPO requests per month” - Financial Engines “What took us just a few days to build using a serverless solution based on AWS Lambda would have taken us six months to build from scratch.”- Edmunds
  7. 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. FOCUS ON DIFFERENTIATORS Installing, configuring, and managing my compute infrastructure is critical to achieving my goals. Having a standardized, flexible, and on- demand compute environment is critical to achieving my goals.
  8. 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS SERVERLESS PORTFOLIO APPLICATION PRIMITIVES – COMPUTE AND DATASTORES AWS Lambda AWS Fargate Amazon API Gateway Amazon SNS Amazon MQ Amazon SQS AWS Step Functions APPLICATION INTEGRATION DEVELOPER TOOLS SECURITY AND ADMINISTRATION Amazon Aurora Serverless Amazon S3 Amazon DynamoDB AWS IAM Amazon Cognito Amazon Inspector Amazon VPC Amazon GuardDuty AWS CloudFormation AWS Cloud9 AWS CloudTrail Amazon CloudWatch AWS X-Ray AWS CodePipeline AWS Config AWS SSO AWS Shield AWS WAF Amazon Kinesis AWS Serverless Application Repository AWS Appsync
  9. 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  10. 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. • Where to start? • What to break out? • Dependencies? • Works as expected? • Users happy? • Does it scale? • Does it perform? • Works as expected? • Users happy? • How to optimize? Does it perform? • How to automate? “Lift and Forget” to Serverless From On-Premise Monolith Via Containerized Services To Functions & Cloud Services
  11. 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Common use cases Web Applications • Static websites • Complex web apps • Packages for Flask and Express Data Processing • Real time • MapReduce • Batch Chatbots • Powering chatbot logic Backends • Apps & services • Mobile • IoT </></> Amazon Alexa • Powering voice- enabled apps • Alexa Skills Kit Autonomous IT • Policy engines • Extending AWS services • Infrastructure management
  12. 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Enterprises are achieving massive scale with Lambda • Thomson Reuters processes 4,000 requests per second • FINRA processes half a trillion validations of stock trades daily • Hearst reduced the time to ingest and process data for its analytics pipeline by 97% • Vevo can handle spikes of 80x normal traffic • Expedia triggers 1.2 billion Lambda requests each month
  13. 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. How Capital One Achieved Flow with Serverless
  14. 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  15. 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Team Challenge Typical team in an enterprise consisting of a developers, architects, business analyst and a PM • Team currently manages a portfolio of customer facing web applications • New project to survey customers • Team is already burdened with maintaining current “Monolithic” apps and related infrastructure • Team meets and decides to reduce undifferentiated heavy lifting (patching servers, scaling etc…) • Team comes up with idea to build their new app using AWS Serverless Services • However, they need to justify their choice to the finance and security teams Let’s dive into their new project…
  16. 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Project requirements • Polling Web application, users across the US and Canada • Poll will run over 2 days, expected traffic ~10M users; need to design for 5k concurrency • Users will be sent a link to the survey containing a unique token • Cost control, High Availability and Resilience is critical • Poll may be run multiple times a year. Will be provided to other enterprises as a SaaS offering • Page load times are critical to reduce the risk of users dropping out • Most users will use their mobile device, so application needs a responsive design • Team has 2 weeks to design, build, test and deploy to production
  17. 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  18. 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Capabilities of a modern application Secure Resilient Elastic Modular Automated Interoperable
  19. 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Think big, but Act Small • Create small, cross-functional teams that are focused on delivering a specific service • Make delivery of these services inclusive of all the elements needed to build and deploy these services to the cloud • Setup of cloud-based development environment • Setup of continuous integration and testing environments • Automated configuration and deployment to test environment • Initial focus is on thin, less robust versions of these elements • Introduce tests that validate some minimal notion of SLA’s
  20. 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Inspect and Adapt • Focus on capturing and understanding the fundamental moving parts of a service • Identify concepts that are horizontal to all services • Set the automation and deployment bar high • Establish service ownership culture on day one • Continually challenge the service decomposition model • Are these the right services and are they small and autonomous?
  21. 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Guiding Principles • Don’t boil the ocean • Centralized monitoring and management is fundamental • Automation is not a phase • Continually look for horizontal concepts • Stay true to the core SOA principles • Autonomy is fundamental to long-term success • Decomposition is more than functional • Agility is a fundamental goal
  22. 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Guiding Principles • Design for failure and nothing fails • Loose coupling sets you free • Implement “Elasticity” • Build Security in every layer • Don’t fear constraints • Leverage different storage options
  23. 23. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  24. 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Final Production Architecture Browser Amazon S3Amazon CloudFront • Bucket Policies • ACLs • OAI • Geo-Restriction • Signed Cookies • Signed URLs • DDOS Amazon Route 53 AWS Lambda Amazon DynamoDB Streams IAM IAM Aggregation AuthZ Amazon DynamoDB Amazon API Gateway • Throttling • Caching • Usage Plans AWS Lambda IAM IAM Amazon Cognito
  25. 25. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  26. 26. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  27. 27. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  28. 28. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Leo Fender, A Creative Builder B U I L D I N G B L O C K S B U I L D - M E A S U R E - L E A R N S C A L E & S I M P L I C I T Y
  29. 29. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. 1 9 5 1 Te l e c a s t e r 1 9 5 4 S t r a t o c a s t e r 1 9 5 1 P r e c i s i o n b a s s
  30. 30. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Fast Forward 70 Years
  31. 31. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  32. 32. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. B2B eCommerce Physical Servers in Boston Physical Servers in Scottsdale Virtual Servers in Scottsdale
  33. 33. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Monolith Architecture Browser Juniper Firewall F5 Load Balancer Web Servers (Apache) SQL Server NetApp (SAN) Solr Server Master Solr Server Slave ATG
  34. 34. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. FMIC Direct
  35. 35. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Business Case Cost Savings Employee Productivity Operational Improvements Business Agility
  36. 36. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Data loads Amazon S3 topic Lambda function Amazon DynamoDB Amazon S3 topic Lambda function Amazon DynamoDB Amazon EC2 Amazon S3 topic Lambda function Redis Amazon CloudFront
  37. 37. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Architecture users Classic Load Balancer Amazon ElastiCache Postgre SQL instance Amazon SES Amazon S3 Amazon CloudFront Order Creation Invoices Online Payments Warranty Claims Finance Details API Gateway AWS Direct Connect Amazon CloudFront Amazon DynamoDB
  38. 38. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Modern Fender Dealer Portal
  39. 39. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Results Hardware purchasing and maintenance Eliminated “Really starting to enjoy the new Fender Portal, some of your competitors have similar sites but no one else has the ease of use, full product details and accuracy like the Fender site does.” License maintenance 100%
  40. 40. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Lessons Learned
  41. 41. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Next Steps
  42. 42. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Alexa Show demo
  43. 43. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. T H A N K Y O U
  44. 44. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  45. 45. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Modern application checklist  Enable security and compliance across the entire app lifecycle  Structure apps as collections of microservices  Build with serverless technologies as much as possible  Use code to model applications and infrastructure  Rapidly release high-quality features with CI/CD  Gain insights into application behavior with monitoring
  46. 46. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  47. 47. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  48. 48. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

×