aws lambda - implementing and creating a function
TRANSCRIPT
![Page 1: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/1.jpg)
AWS Lambda Clouddictivehttps://[email protected]
![Page 2: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/2.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/3.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/4.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/5.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/6.jpg)
Invoking AWS Lambda❖ AWS API Gateway❖ S3 - File is added/uploaded / deleted❖ SNS❖ Kinesis Stream❖ Custom Scheduler❖ Amazon Echo, IOT Actions, Cognito, SWF …
![Page 8: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/8.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/9.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/10.jpg)
How It Works - ETL❖ Zillow - Extract, Transform, Load❖ Source - https://aws.amazon.com/lambda/
![Page 11: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/11.jpg)
How It Works - IOT Backends
❖ Source - https://aws.amazon.com/lambda/
![Page 12: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/12.jpg)
How It Works - Mobile Backends❖ Source - https://aws.amazon.com/lambda/
![Page 13: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/13.jpg)
How It Works - Web Applications❖ Source - https://aws.amazon.com/lambda/
![Page 14: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/14.jpg)
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](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/15.jpg)
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
![Page 16: Aws lambda - Implementing and Creating a Function](https://reader036.vdocuments.site/reader036/viewer/2022062522/58758bb11a28ab901c8b5cb1/html5/thumbnails/16.jpg)
Demo - API Gateway
❖ https://blog.clouddictive.com/2016/07/08/serverless-compute-series-part-3-aws-lambda-and-api-gateway/
❖ https://youtu.be/ffCwb4xqAOk