Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AWS Lambda vs Heroku: what are the key differences?

Tags:

I searched online but can't find a good answer to what the key differences are between AWS Lambda vs Heroku. I can for example write Node JS but when should I use Lambda and when Heroku?

like image 702
chemook78 Avatar asked May 22 '17 02:05

chemook78


People also ask

What is the difference between Heroku and AWS?

KEY DIFFERENCEHeroku is container-base cloud platform offering (PaaS) whereas AWS is a secure cloud services platform providing IaaS, PaaS and SaaS. Heroku offers you a ready-to-use environment that allows you to deploy your code fast whereas the deployment process of AWS service is quite complicated.

Should I deploy with Heroku or AWS?

Heroku is suitable for smaller cloud apps. Depending on your project, Heroku can be expensive if the app is intensive on traffic. AWS is perfect for medium and large businesses. It should be chosen when one needs flexibility right from the initial application deployment.


1 Answers

AWS Lambda is for creating server side apps based on serverless architecture, while Heroku is a platform as a service (PaaS) which can be used to build and run server apps.

Heroku is a service which provides tools to deploy, manage, and scale server applications. You can use node.js, go, python, etc. for your server app which runs on a Heroku instance.

Here are the key differences:

  • On Lambda you pay for the computation time, while on Heroku you pay monthly.

  • Lambda instances are created on demand, while Heroku instance is always running.

  • Heroku provides add-ons which are easy to use to integrate third party services, such as MailGun and Redis, in your service.

If your service is just going to do something simple such as converting an image and saving it on a S3 bucket, you can use AWS Lambda, but if you are creating a complex service which is doing multiple different tasks, it is better to use Heroku and choose a language/framework which fits your needs.

You can learn more on serverless architecture here.

like image 190
Sina Masnadi Avatar answered Sep 17 '22 17:09

Sina Masnadi