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

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Engage with a sea of insights in this enlightening article, highly esteemed within the encouraging DEV Community. Programmers of every skill level are invited to participate and enrich our shared knowledge.

A simple "thank you" can uplift someone's spirits. Express your appreciation in the comments section!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found this useful? A brief thank you to the author can mean a lot.

Okay