Aws lambda - Implementing and Creating a Function

Post on 11-Jan-2017

88 views 0 download

transcript

AWS Lambda Clouddictivehttps://blog.clouddictive.comteam@clouddictive.com

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

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

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

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.

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

How It Works

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

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

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

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

How It Works - IOT Backends

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

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

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

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

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