DEV Community

Justin Luzano
Justin Luzano

Posted on

Technical Documentation Blog For AWS Services: AWS Lambda

So What Is AWS Lambda?

AWS Lambda " is an event-driven, serverless Function as a Service (FaaS) provided by Amazon as a part of Amazon Web Services. It is designed to enable developers to run code without provisioning or managing servers. It executes code in response to events and automatically manages the computing resources required by that code. " -https://en.wikipedia.org/wiki/AWS_Lambda

As a beginner and and starting practitioner of AWS. I can only explain Lambda as far as my understanding goes and how far I've learned and researched. So there won't be any technicalities here or code since I haven't studied up to that point yet.

How I understand it so far:

AWS Lambda is a service on AWS that lets you run code without any servers. What you only need to do is to upload your code and AWS handles everything.

In simpler terms, Imagine a small task you want to automate like editing photos or processing data, with the help of AWS Lambda, you can write the code for it and upload it to AWS. When it gets triggered, the action will automate and Lambda runs the code you submitted.

AWS Lambda Benefits:

  • Ease of use: You only need to write and upload your code, and Lambda automates it for you.

  • Scaling: Lambda can handle a large number of requests

  • Cost-effective: Pay only for what you use.

Examples:

Imagine a website that recreates Canva's Magic Switch or Transform, As an avid user of Canva, I found Magic Switch/Transform their most helpful tool. What Magic Switch does is that it adjusts photos or templates you create, so for example is that you created a Photo to upload to in Facebook, and you need to upload it too on Instagram. What Magic Switch does for you is it elongates and adjust the contents of the photo you created on Facebook to better fit the dimensions Instagram usually requires or best uses. To recreate a website that does the same with the help of AWS Lambda, you can write a function that:

  1. Triggers when a user uploads a picture
  2. Asks what platform it will be posted to
  3. Resize and Moves elements of the picture
  4. Saves the new picture

Conclusion:

AWS Lambda is a helpful and simple way to automate your code without servers. It's great for start-ups since they pay only for services they use and It's great for scalability for when they hit it big ! AWS Lambda, write the code, and AWS has your back.

Top comments (0)