Observability Glossary

AWS Lambda

Linkedin icon
Reddit icon

AWS Lambda is a serverless computing service provided by Amazon Web Services that lets you run code without provisioning or managing servers. With AWS Lambda, you can write and run code without worrying about the underlying infrastructure, making it a powerful tool for developers iterating fast.

For example, let's say you have a website and you want to automatically resize images that users upload. Instead of setting up and managing a server to handle this task, you can use AWS Lambda. You just write the code that resizes the images, upload it to AWS Lambda, and tell it to run whenever a new image is uploaded. AWS Lambda will take care of the rest, including scaling to handle any number of incoming image uploads.

Here's a simple JavaScript code example of an AWS Lambda function that logs a message:

exports.handler = async (event) => {
  console.log('Received event:', JSON.stringify(event, null, 2));
  return true;
};
Explore related concepts
Start resolving issues today.
Without the hassle.