I’ve been working through some AWS labs in preparation for the Solutions Architect Associates Exam. I’m getting more familiar with the services provided and getting to know the inner workings of each service. I’ve mentioned before that EC2 is the superstar around which all the other services revolve. Well, there seems to be a new girl on the rise and she seems to be coming for the EC2 throne. Lambda is the service that seems to be on every developers lips. At first glance Lamda just looks like EC2, but with the ability to deploy code. It’s so much more than that.Startups seem to love it, its cost-effective and everyone is excited. Cloud Academy is launching a new learning path for it and ‘server less architecture’ is a buzzword.
So what is Lambda exactly, and how is it different from EC2?
AWS Lambda is a compute service where you can upload your code to AWS Lambda and the service can run the code on your behalf using AWS infrastructure. After you upload your code and create what we call a Lambda function, AWS Lambda takes care of provisioning and managing the servers that you use to run the code.
-Amazon Web Services
In other words Lamda is a way to run code without a server. The code runs in response to ‘triggers’ that are put in place by the developer/user. It’s a sort of ‘set it and forget it’ model. It also seems to be a lot more cost-effective than dear old Ec2.
AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume – there is no charge when your code is not running. With Lambda, you can run code for virtually any type of application or backend service – all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.
-Amazon Web Services
It seems to be an interesting and useful service to learn. I wouldn’t be surprised it a Lambda Certification pops up in the very near future. Also, every time I say Lamda, this song gets stuck in my head–