16
AWS Lambda Clouddictive https://blog.clouddicti ve.com [email protected]

Aws lambda - Implementing and Creating a Function

Embed Size (px)

Citation preview

Page 2: Aws lambda - Implementing and Creating a Function

Agenda❖ What is Serverless Compute❖ Benefits of Serverless Compute❖ AWS Lambda❖ Invoking AWS Lambda❖ How It Works❖ Demo - Implementing Lambda function in Java❖ Demo - Deploying Lambda Function - IAM Role and Function

in the cloud❖ Demo - API Gateway

Page 3: Aws lambda - Implementing and Creating a Function

Serverless Compute❖ Next step in the evolution of Cloud Computing❖ Capability to run your code or a function in the

cloud without the need to manage any server in the cloud.

❖ Big Players ❖ Amazon - AWS Lambda❖ Google - Google Cloud Function❖ Microsoft - Azure Functions

Page 4: Aws lambda - Implementing and Creating a Function

Benefits of Serverless Compute❖ No servers to administer

❖ No Need Maintain and Manage Server - applying updates

❖ Pay for only code execution❖ No charge when the code is not running

❖ Automatic Scaling

Page 5: Aws lambda - Implementing and Creating a Function

AWS Lamba❖ Function in the Cloud❖ Automatic Scaling❖ Pay as you go

❖ Pricing – 1M requests for free and then $0.20/1m requests.❖ Supported languages – Java, Python, and JavaScript❖ Deployment – direct zip uploads lambda or from S3.❖ Event Driven – Different source can trigger your function.❖ RESTful invocation capability using AWS API Gateway.❖ Logs management on CloudWatch.❖ Maximum execution time – 5 minutes.

Page 6: Aws lambda - Implementing and Creating a Function

Invoking AWS Lambda❖ AWS API Gateway❖ S3 - File is added/uploaded / deleted❖ SNS❖ Kinesis Stream❖ Custom Scheduler❖ Amazon Echo, IOT Actions, Cognito, SWF …

Page 7: Aws lambda - Implementing and Creating a Function

How It Works

❖ Source - https://aws.amazon.com/lambda/

Page 8: Aws lambda - Implementing and Creating a Function

How It Works - File processing❖ The Seattle Times - File processing❖ Source - https://aws.amazon.com/lambda/

Page 9: Aws lambda - Implementing and Creating a Function

How It Works - Stream Processing❖ Localytics - Real-time Stream Processing❖ Source - https://aws.amazon.com/lambda/

Page 10: Aws lambda - Implementing and Creating a Function

How It Works - ETL❖ Zillow - Extract, Transform, Load❖ Source - https://aws.amazon.com/lambda/

Page 11: Aws lambda - Implementing and Creating a Function

How It Works - IOT Backends

❖ Source - https://aws.amazon.com/lambda/

Page 12: Aws lambda - Implementing and Creating a Function

How It Works - Mobile Backends❖ Source - https://aws.amazon.com/lambda/

Page 13: Aws lambda - Implementing and Creating a Function

How It Works - Web Applications❖ Source - https://aws.amazon.com/lambda/

Page 14: Aws lambda - Implementing and Creating a Function

Demo - Implementing Lambda function in Java

❖ https://blog.clouddictive.com/2016/06/18/serverless-compute-series-part-1-aws-lambda-and-java-project/

❖ https://youtu.be/bNL_YuzziHU❖ https://youtu.be/hP3zkcLCje8❖ https://youtu.be/_38NUno9ePc

Page 15: Aws lambda - Implementing and Creating a Function

Demo - Deploying Lambda Function - IAM Role and Function in the cloud

❖ https://blog.clouddictive.com/2016/06/18/serverless-compute-series-part-2-aws-lambda-and-execution-in-cloud/

❖ https://youtu.be/a76-Bz9DdSU❖ https://youtu.be/G1EJcYSQty0❖ https://youtu.be/iJsEGDvxqsE