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.

Advance Serverless for Production Grade Workloads

154 views

Published on

Check out Gary Arora, Chief Architect and AWS Ambassador’s presentation “Advance Serverless for Production Grade Workloads” at the AWS Titan Talks and learn what it takes to build, test, debug, and deploy robust production grade serverless applications using frameworks and accelerators

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Advance Serverless for Production Grade Workloads

  1. 1. GARY ARORA Chief Architect | AWS Ambassador Advance Serverless for Production Grade WorkloadsAWS TITAN TALKS “Serverless”
  2. 2. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 2 Serverless is an Operational Construct Source: Digital Rewrites The Rules Of Business, Forrester
  3. 3. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 3 Serverless Use Cases Web Apps • Static Websites • Complex Single Page Apps (SPAs) • Packages for Flask and Express Backends • Apps & Services • Mobile • IoT Data Processing • Real time • MapReduce • Batch • Streaming Chatbots • Powering chatbot logic • Contact center Amazon Alexa • Voice-enabled apps • Alexa Skills Kit IT Automation • Policy Engines • Infrastructure management
  4. 4. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 4 Serverless Demo Basic Amazon DynamoDB AWS Lambda Amazon API Gateway AWS Cloud Single microservice User What would it take to make this Production Grade?
  5. 5. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 5 Road to Production Grade Serverless Frameworks & Tools AWS, open source, and third-party web frameworks to rapidly build, test, deploy, and monitor serverless applications. • AWS Serverless Application Model (SAM) • AWS Cloud Dev Kit (CDK) • AWS Amplify • AWS Cloud9 • AWS Toolkit for VS Code • Serverless Framework • Sparta Continuous Integration And Deployment (CI/CD) Automate building, testing, and deploying serverless applications • AWS CodePipeline • AWS CodeBuild • AWS CodeDeploy • CloudBees • CodeShip Monitoring, Logging, and Diagnostics Locally develop, monitor and troubleshoot the performance of your serverless applications with real-time metrics and logs • AWS X-Ray • Amazon CloudWatch Datadog • IOpipe • Sumo Logic
  6. 6. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 6 Serverless Demo Basic Demo -> Production Grade AWS Toolkit for Visual Studio AWS SAM • CLI tool for local development, deployment, debugging, testing, deploying, and monitoring • Supports API Gateway “proxy-style” and Lambda service API testing • Docker Lambda and DynamoDB images to mimic AWS environment including timeout, memory limits, runtime • Can tail production logs from CloudWatch logs • Can help build in native dependencies "SAM the Squirrel”
  7. 7. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 7 Serverless Demo Basic Demo -> Production Grade Tells AWS CloudFormation this is a SAM template it needs to “transform” Lambda configuration. Timeout = 30 seconds Creates a AWS Lambda function with referenced IAM policy, runtime, code, and handler as defined Creates an API Gateway and takes care of all mapping/permissions necessary Creates a Amazon DynamoDB table Amazon DynamoDB AWS Lambda Amazon API Gateway AWS Cloud "SAM the Squirrel”
  8. 8. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 8 Serverless Airline Booking Production Grade Demo
  9. 9. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 9 Serverless Airline Booking Serverless Demo Production Grade Features • 3 tier app • Login & Signup • Profile • Flight Search • Booking • Payment with Stripe • Loyalty points
  10. 10. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 10 Serverless Airline Booking Architecture Serverless Demo Production Grade Source code: github.com/aws-samples/aws-serverless-airline-booking Tech Stack • Frontend: Vue.js, Amplify • Data: GraphQL with DynamoDB • API: GraphQL with AppSync & APIGateway • Auth: AWS Cognito • Messaging: Step Functions, SNS • CI/CD Automation & Monitoring • End to end testing ONE-CLICK DEPLOYMENT c THIS makes it Production Grade
  11. 11. Copyright © 2020 Deloitte Development LLC. All rights reserved. | 11 Source code: github.com/aws-samples/aws-serverless-airline-booking Real Time Observability, Telemetry, and Monitoring • Setup tracing tools to visualize and track the real-time performance of services • Integrate tools for real-time high- resolution metrics to spot outliers quickly. Down to the exact invocation • Use custom labels for intelligent logging, filtering and advance searching • Setup auto-triaged alerts based on custom triggers End-to-end App Automation • Leverage deployment templates & frameworks with built-in best practices to create functions, APIs, databases, and event source mappings • Automate backups and disaster recovery mechanisms through intelligent routing • CI/CD toolchain integration A large event driven serverless application may have 100s of services firing off millions of events per minute. NoOps is critical in ensuring application sustainability during test, deploy, log and monitor Automate Security • Setup rules engine for cloud security, cost optimization, and governance • Automate security guardrails ensuring real time enforcement of security policies (e.g. encryption, access requirements) Local Debugging And Testing • Develop and test locally in prod-like environment • Tighten development loop by finding issues locally before deploying to the cloud. Key Drivers of Production Grade Serverless
  12. 12. About Deloitte Deloitte refers to one or more of Deloitte Touche Tohmatsu Limited, a UK private company limited by guarantee (“DTTL”), its network of member firms, and their related entities. DTTL and each of its member firms are legally separate and independent entities. DTTL (also referred to as “Deloitte Global”) does not provide services to clients. In the United States, Deloitte refers to one or more of the US member firms of DTTL, their related entities that operate using the “Deloitte” name in the United States and their respective affiliates. Certain services may not be available to attest clients under the rules and regulations of public accounting. Please see www.deloitte.com/about to learn more about our global network of member firms. This publication contains general information only and Deloitte is not, by means of this publication, rendering accounting, business, financial, investment, legal, tax, or other professional advice or services. This publication is not a substitute for such professional advice or services, nor should it be used as a basis for any decision or action that may affect your business. Before making any decision or taking any action that may affect your business, you should consult a qualified professional advisor. Deloitte shall not be responsible for any loss sustained by any person who relies on this publication. Copyright © 2020 Deloitte Development LLC. All rights reserved. Thank you Gary Arora Chief Architect | AWS Ambassador GaryArora@deloitte.com

×