AWS Lambda - An Introduction
What is AWS Lambda?
First of all, we need to understand what is serverless:
What is serverless?
Serverless is a new paradigm in which the developers don’t have to manage servers anymore; they just deploy code. Serverless doesn’t mean there are no servers, it means you just don’t manage/provision/see them.
It's a cloud-based development approach, in which developers are free to focus on only writing code instead of managing server issues. Serverless also supports auto-scaling which means that the computing storage and processing are allocated on demand.
Returning to the title, lambdas are basically virtual functions. AWS Lambda is a role-based cloud service that eliminates the provisioning and maintenance needs of complex infrastructure. With Lambda, we don't need to worry about scaling our infrastructure and removing unnecessary resources, since all of this is handled in parallel.
Summarizing…
What are the benefits/advantages of using AWS Lambda?
What are the supported languages?
Natively supports:
Also, it provides a Runtime API that allows you to use any additional programming languages to author your functions.
Common uses cases:
There are a lot of uses cases using AWS Lambdas, these are some examples:
What are the disadvantages/limitations of AWS Lambda?
Pricing
Basically, you pay for:
Lambda executions are included in the Free Tier, and this is not like other services whose limit is 12 months. For AWS Lambda, the Free Tier is: the first 1M requests are free and 400mil GBs of compute time per month.?
The amount of money you pay will depend on the region, although most have the same costs. This is an example I got from https://aws.amazon.com/lambda/pricing/ for the region US East (N. Virginia):
Duration cost depends on the amount of memory you allocate to your function. You can allocate any amount of memory to your function between 128 MB and 10,240 MB, in 1 MB increments.
Also here is an example for the region US East (N. Virginia):
You can configure and calculate your costs at this link:?
https://calculator.aws/#/createCalculator/Lambda
Conclusion
Lambda is one of the most popular services in AWS due to the ease of understanding and use, also supports the most used programming languages, relatively speaking the costs are very low and also it provides excellent options in the Free Tier; and the best thing is that the possibilities of use are endless
Reference:
Senior Software Engineer at VISA
3 年????