Outreachy internship with Mozilla: AWS Lambda
In this blog post, I will be talking about AWS Lamda. Let’s start with a little introduction.
AWS ( Amazon Web Services ) is a cloud services platform that offers services like database storage, content delivery, compute power/domain etc. AWS Lamda is a part of compute domain. Basically, there are three main services in compute domain-
- EC2 — It is like a raw server. We can also say that it is like a personal computer that we are working on remotely. It can install any kind of operating system which is supported by AWS infrastructure and then you can use it in any manner i.e one can configure it to become a server etc.
- Elastic Beanstalk- This is an automated version of EC2. Here, you don’t get the access to the operating system but you still have control over the configuration. Here, you can directly upload the code and then application is deployed on AWS infrastructure.
- AWS Lambda- This is also an automated version of EC2. But here, you neither have access to the operating system nor you have any control over the configuration. All you do is to upload your code and it executes.
AWS Lambda is not used to deploy applications. It is used to execute background tasks. So, we can say that- “AWS lambda is a serverless compute service ( i.e you are not choosing the kind of configuation you want). The developers don’t have to worry about which AWS resource to launch or how to manage them. Just put the code on Lambda and it runs”.
Once you upload the code, your code will be executed on your behalf using Amazon’s infrastructure. Each piece of your code is called a function on Lambda platform. All of the functions that you upload has to be stateless. Now, the question is- How to trigger a Lambda function? Lambda funnctions can be triggered by events ( events from AWS services i.e S3 is also allowed), https calls etc.
In order to use AWS Services, you have to set up an AWS account. I got mine through mozilla. Next is to learn and implement some practical examples. I will write my experience with AWS lambda along with examples in my next blog.
Thanks for reading!