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.

Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019

154 views

Published on

In this session, we will share our insights and learnings of using AWS as the cloud platform to build a cost-effective, scalable and cloud-native architecture for our business logic. After a general overview we will dive deep into our architecture and implementation, discuss the platform services we used to build the solution, and talk about our lessons learned from our journey. We will show our use of AWS Step Functions to build serverless workflows, and how we wrapped it as a microservice to serve other parts of the solution.

  • Be the first to comment

Let Your Business Logic go Serverless | AWS Summit Tel Aviv 2019

  1. 1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Innovate – Let your business logic go serverless Oren Reuveni Solutions Architect Amazon Web Services D E V 3 0 2 Uri Segev Principal Solutions Architect Amazon Web Services
  2. 2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  3. 3. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. FrontendData Microservices Common Interfaces Machine Learning Services Serverless Scheduler Data lake and Analytics Flights Resources 31 2 4 5 AWSome Airlines architecture
  4. 4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  5. 5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Events Topic SNS Plane State Machine Step Functions Topic Listener Lambda Function Activity Poller ECS Fargate Tasks Table DynamoDB Tasks API API Gateway Tasks API Lambda Function Scheduler architecture
  6. 6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. What is serverless? No infrastructure provisioning, no management Automatic scaling Pay for value Highly available and secure
  7. 7. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda AWS Fargate COMPUTE DATA STORES INTEGRATION Amazon Aurora Serverless Amazon S3 Amazon DynamoDB Amazon API Gateway Amazon SNS Amazon SQS AWS Step Functions AWS AppSync
  8. 8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Step Functions AWS Lambda Amazon DynamoDB Amazon API Gateway AWS SAM In this session
  9. 9. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Lambda • Run code without provisioning or managing servers • Pay only for the compute time you consume • Virtually any type of application or backend service • Zero administration • Trigger from other AWS services or call it directly from any web or mobile app
  10. 10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Serverless applications Services (anything) Changes in data state Requests to endpoints Changes in resource state Event source Function Node.js Python Java C# Go Ruby Runtime API
  11. 11. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon API Gateway • Fully managed service that makes it easy for developers to publish, maintain, monitor, and secure APIs at any scale • Key Features • Native AWS Service Integration • SDK Generation • API Authorization • API Monitoring using Amazon CloudWatch • API-Keys for 3rd Party Developers • WebSocket support
  12. 12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon DynamoDB • Fast and flexible key value database service for any scale • Key Features • Performance at scale • Serverless • Comprehensive security • Global database for global users and apps
  13. 13. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. CI/CD for serverless applications • Source code repository hosts SAM template • CodePipeline per application • CodeBuild generates a deployable artifact • CodePipeline/CodeDeploy deploys to different environments, with the right config CodeBuildCodeCommit CodePipeline CloudFormation API Gateway Lambda Dev account Step Functions DynamoDB CodeDeploy CloudFormation API Gateway Lambda Test account Step Functions DynamoDB CodeDeploy CloudFormation API Gateway Lambda Prod account Step Functions DynamoDB CodeDeploy Tools accountCode account
  14. 14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Serverless Application Model (SAM) • AWS CloudFormation extension optimized for serverless • Special serverless resource types: • Functions, APIs, SimpleTables and Layers • CLI tool for local development, debugging, testing, deploying, and monitoring of serverless applications https://aws.amazon.com/serverless/sam
  15. 15. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS SAM CLI $ sam init $ sam build (sam local) $ sam package $ sam deploy Initializes a serverless application with an AWS SAM template Build your application and generate deployment artifacts Invokes a local function/API Packages an AWS SAM application Deploys an AWS SAM application
  16. 16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  17. 17. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS Step Functions • Serverless workflow management with zero administration • Key Features • Coordinate the components of distributed applications and microservices using visual workflows • Automatically triggers and tracks each step and retries when there are errors • Logs the state of each step • Service integrations: Amazon SNS Amazon SQS Amazon SageMaker AWS Glue AWS Batch Amazon ECS AWS Fargate AWS Lambda Amazon DynamoDB
  18. 18. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  19. 19. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Key takeaways • Serverless can be used to rapidly build systems at scale • Not only Lambda, an large ecosystem • Combining Lambda and AWS managed services • Use SAM framework
  20. 20. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. FrontendData Microservices Common Interfaces Machine Learning Services Serverless Scheduler Data lake and Analytics Flights Resources 31 2 4 5 What’s next
  21. 21. Thank you! © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved. Oren Reuveni Uri Segev http://bit.ly/2SJ6Dq0

×