From the course: Learning Amazon Web Services Lambda

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

The AWS Lambda programming model

The AWS Lambda programming model

- [Instructor] Now that you're familiar with the basics of AWS Lambda, let's look at Lambda programming model. What do you need to know to get started working with it? I'll use JavaScript for the examples. The same concepts applies to other languages. We can break the Lambda programming model into three basic parts. Lambda has triggers. It has a handler function. And it has the specific code for that function. Let's begin by looking at some of the examples of Lambda triggers. One typical example is an HTTP request that comes into the system using Amazon API Gateway. Then API Gateway triggers the Lambda function. Another example is a record in Amazon DynamoDB that has changed, and this can trigger a Lambda function to execute. The creation of a file in our file storage AWS S3 can trigger a function to run as well. Also, a new message in an Amazon SQS queue, that is the AWS Managed Service for queue, can trigger Lambda…

Contents