DEV Community

Ramaiah Kethana
Ramaiah Kethana

Posted on

What is lambda and when to use lambda

AWS Lambda is a serverless computing platform provided by Amazon. It is a part of AWS. Lambda is like a compute engine. It will take care of resources assigning and help to build applications quickly.

Advantages:

  • Cost efficiency: Because you only pay for the compute time you consume, using AWS Lambda can be more cost-effective than running your own servers.
  • Scalability: Lambda take care of resource planning and spin up new resources based on incoming requests. Reduced cost of execution: One of the biggest strengths of - AWS Lambda functions is the reduced cost of execution.

Drawbacks:

  • Issue of Cold start: If the function called first time or being idle for some time, cold start will come into existence. It includes spin up a new server to run the code. This will cause the extra latency.
  • Limited runtime options: Lambda supports only a limited runtime.

Sample Use cases:

  • Email service - Lambda can be used to send emails
  • Serverless website: AWS Lambda can be used to build serverless websites that are scalable and cost-effective
  • App authentication: Lambda can be used to write authentication related services
  • Real-time data transformation: AWS Lambda can be used to transform data in real-time
  • Chatbot: Lambda can be used to build chatbot related applications
  • IoT applications: Lambda can be used for developing IoT related applications

Top comments (0)