Skip to main content

Benifits and Limitations of AWS lambda


AWS Lambda

AWS Lambda is one of the computing services provided by AWS, which is event-driven and serverless. It is a stateless serverless system that helps us run our background tasks in the most efficient manner possible.




Benefits of AWS Lambda

AWS Lambda provides us the following benefits:

  • Due to its serverless architecture, no need to provision or manage servers

  • No need to set up any virtual machine (VM)

  • Lambda tasks need not to be registered like Amazon SWF activity types.

  • We can use any existing Lambda functions that you’ve already defined in workflows.

  • Lambda functions are called directly by Amazon SWF; there is no need design a program to implement and execute them.

  • Lambda provides us the metrics and logs for tracking function executions.
  • Allows developers to run and execute codes in response to events without the need for building any infrastructure

  • Pay as you go: Just pay for the compute time taken, only when the code runs. Also, pay only for the used memory and the number of processed code requests, and the code execution time is rounded up by 100 milliseconds.

  • Easily monitor code performance in real time through CloudWatch


Limitations of AWS Lambda


AWS Lambda offers so many benefits, we might face a few limitations while working with AWS Lambda, due to its various characteristics w.r.t. its hardware and its architecture. few of the limitations are listed below:
  • The maximum execution duration per request is set to 300 seconds (15 minutes)

  • In the case of hardware, the maximum disk space provided is 512 MB for the runtime environment, which is very less

  • Its memory volume varies from 128 MB to 1,536 MB

  • The event request body cannot exceed more than 128 KB

  • Its code execution timeout is only 5 minutes

  • Lambda functions write their logs only to CloudWatch, which is the only tool available in order to monitor or troubleshoot our functions

Throttle Limit


The throttle limit is 100 concurrent Lambda function executions per account and is applied to the total concurrent executions across all functions within a same region.
The formula to calculate the number of concurrent executions for a function = (average duration of the function execution) X (number of requests or events processed by AWS Lambda).
When throttle limit is reached, then it returns a throttling error having an error code 429. After 15-30 minute you can start work again. The throttle limit can be increased by contacting AWS support center.


Resources Limit

The following table shows the list of resources limits for a Lambda function.

ResourceDefault Limit
Ephemeral disk capacity ("/tmp" space)512 MB
Number of file descriptors1,024
Number of processes and threads (combined total)1,024
Maximum execution duration per request300 seconds
Invoke request body payload size6 MB
Invoke response body payload size6 MB

Service Limit


The following table shows the list of services limits for deploying a Lambda function.
ItemDefault Limit
Lambda function deployment package size (.zip/.jar file)50 MB
Size of code/dependencies that you can zip into a deployment package (uncompressed zip/jar size)250 MB
Total size of all the deployment packages that can be uploaded per region1.5 GB
Number of unique event sources of the Scheduled Event source type per account50
Number of unique Lambda functions you can connect to each Scheduled Event5

These limitations of AWS Lambda basically exist to ensure that the services are used as intended.

Comments

Post a Comment

Popular posts from this blog

What is STP? - Explain Advantages and Disadvantages

The Spanning Tree Protocol is a network protocol that builds a loop-free logical topology for Ethernet networks. The basic function of STP is to prevent bridge loops and the broadcast radiation that results from them. STP is a protocol. It actively monitors all links of the network. To finds a redundant link, it uses an algorithm, known as the STA (spanning-tree algorithm). The STA algorithm first creates a topology database then it finds and disables the redundant links. Once redundant links are disabled, only the STP-chosen links remain active. If a new link is added or an existing link is removed, the STP re-runs the STA algorithm and re-adjusts all links to reflect the change. STP (Spanning Tree Protocol) automatically removes layer 2 switching loops by shutting down the redundant links. A redundant link is an additional link between two switches. A redundant link is usually created for backup purposes. Just like every coin has two sides, a redundant link, along with

What are the Advantages and Disadvantages of TCP/UDP ?? Difference between TCP and UDP

As in previous blog we have define and explain about what is TCP and UDP and from now we are moving ahead with Advantages, Disadvantages and Difference of TCP and UDP but for this you have to know about TCP and UDP hence to understand it go for a What is TCP and UDP . Advantage of TCP Here, are pros/benefits of TCP: It helps you to establish/set up a connection between different types of computers. It operates independently of the operating system. It supports many routing-protocols. It enables the internetworking between the organizations. TCP/IP model has a highly scalable client-server architecture. It can be operated independently. Supports several routing protocols. It can be used to establish a connection between two computers. Disadvantages of TCP Here, are disadvantage of using TCP: TCP never conclude a transmission without all data in motion being explicitly asked. You can't use for broadcast or multicast transmission. TCP has no block boundaries, so you