SlideShare a Scribd company logo
NamespaceIT
Let’s talk about Lambda!
AWS Lambda is a service which performs server less computing, which involves
computing without any server.
What is serverless ?
Serverless computing is a method of providing backend services on an as-used basis.
A serverless provider allows users to write and deploy code without the hassle of
worrying about the underlying infrastructure.
Confusion about the term “SERVERLESS”
- The term ‘serverless’ is somewhat misleading, as there are
still servers providing these backend services
- But all of the server space and infrastructure concerns are
handled by the vendor.
- Serverless means that the developers can do their work
without having to worry about servers at all.
Introduction to Aws lambda and build first application | Namespace IT
How AWS Lambda Works?
• Step 1 − Uploads your code in Aws lambda with supported languages.
• Step 2 − These are few AWS services on which AWS lambda can be
triggered.
• Step 3 − Aws Lambda uploads your code and triggers some event
services Amazon S3, DynamodB, mobile app, Amazon SNS, Amazon
Kinesis etc.
• Step 4 − Executes AWS Lambda code when triggered by AWS services
like - sending email, shore data in S3 bucket, hosting websites, push
notification hit on http request etc.
Scenario of server less service
1: Static Website Hosting
Create a bucket in Amazon S3 and configure it for static website hosting. The static
HTML, JS, and CSS will be served directly to user browsers from Amazon S3.
2: User Management
Allow visitors to register as a new user, by providing and validating their email address.
Amazon Cognito will be used to manage the User.
3: Serverless Service Backend
Create a service backend using AWS Lambda and Amazon DynamoDB to
handle requests from your frontend static website content.
Advantages of using AWS Lambda
• Minimized Cost
• Faster Development
• Easier Management
• Multi Language Support
• Billing based on Usage
• $0.20 - per 1M requests
• AWS Lambda is free by getting to AWS free tier
Disadvantages of using AWS Lambda
• No Control Over Environment
• Not good for small size project
• More Complex Call Patterns
• AWS Lambda does not allow you to install additional software if you
need to add.
• After executing your software and if your software needs more time to
execute & needs more memory, it shows timeout and the code will not
be fully executed.
AWS Lambda function code can be written in
following languages −
• NodeJS
• Java,
• Python
• C#
• Go.
AWS Lambda
Function in Python
Step 1 : You have to login to the AWS console and then go to AWS
Lambda services. Then show this screen and click to create function
button -
Step 2: After clicking the
create function button you
will show this screen.
Then give the name of
function. We write our
function name helloWold.
Then select runtime
Python.
Python Hello World
Result:
Handler Details for Python
• Note that the handler has to be the name of the file followed by the
name of the function. In the above case, our file name is
helloWorld.py and the name of the function is my_handler; so the
handler will be helloWorld.my_handler.
Handler Details for Python
def my_handler(event, context):
return "aws lambda in python using zip file“
Context Object in Python
Context object gives details like the name of Lambda function
- Time in milliseconds
- request id
- timeout etc.
get_remaining_time_in_millis() : This method gives the remaining time millisecond until the lambda function
ends the function.
function_name() : It returns function name.
function_version() : It returns the version of aws lambda function executing
aws_request_id() : This gives the aws request id.
DEMO PROJECT SHOW

More Related Content

Similar to Introduction to Aws lambda and build first application | Namespace IT (11)

PDF
AWS Lambda Functions A Comprehensive Guide
Inexture Solutions
 
PDF
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Atlogys Technical Consulting
 
PPTX
Introduction to AWS lambda & Serverless Application1.pptx
Mohammed Shefeeq
 
PPTX
Developing serverless applications with .NET on AWS
Woody Pewitt
 
PPTX
Serverless architectures on aws
Paolo latella
 
PDF
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
 
PDF
AWS Lambda Presentation (Tech Talk DC)
Doguhan Uluca
 
PPTX
Lambda and serverless - DevOps North East Jan 2017
Mike Shutlar
 
PDF
An introduction to serverless architectures (February 2017)
Julien SIMON
 
PDF
10 Tips For Serverless Backends With NodeJS and AWS Lambda
Jim Lynch
 
PDF
Introduction to AWS Lambda with Python
adaplo
 
AWS Lambda Functions A Comprehensive Guide
Inexture Solutions
 
Infinite Scaling using Lambda and Aws - Atlogys Tech Talk
Atlogys Technical Consulting
 
Introduction to AWS lambda & Serverless Application1.pptx
Mohammed Shefeeq
 
Developing serverless applications with .NET on AWS
Woody Pewitt
 
Serverless architectures on aws
Paolo latella
 
Getting Started with AWS Lambda & Serverless Cloud
Ian Massingham
 
AWS Lambda Presentation (Tech Talk DC)
Doguhan Uluca
 
Lambda and serverless - DevOps North East Jan 2017
Mike Shutlar
 
An introduction to serverless architectures (February 2017)
Julien SIMON
 
10 Tips For Serverless Backends With NodeJS and AWS Lambda
Jim Lynch
 
Introduction to AWS Lambda with Python
adaplo
 

Recently uploaded (20)

PDF
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
PDF
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
PDF
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
PDF
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
PPTX
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
PPTX
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
PDF
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PDF
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
PDF
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
PPTX
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
PPTX
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
PDF
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
PDF
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
PDF
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
PDF
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Jak MŚP w Europie Środkowo-Wschodniej odnajdują się w świecie AI
dominikamizerska1
 
Log-Based Anomaly Detection: Enhancing System Reliability with Machine Learning
Mohammed BEKKOUCHE
 
Predicting the unpredictable: re-engineering recommendation algorithms for fr...
Speck&Tech
 
Impact of IEEE Computer Society in Advancing Emerging Technologies including ...
Hironori Washizaki
 
Webinar: Introduction to LF Energy EVerest
DanBrown980551
 
WooCommerce Workshop: Bring Your Laptop
Laura Hartwig
 
Presentation - Vibe Coding The Future of Tech
yanuarsinggih1
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Complete JavaScript Notes: From Basics to Advanced Concepts.pdf
haydendavispro
 
SFWelly Summer 25 Release Highlights July 2025
Anna Loughnan Colquhoun
 
AUTOMATION AND ROBOTICS IN PHARMA INDUSTRY.pptx
sameeraaabegumm
 
OpenID AuthZEN - Analyst Briefing July 2025
David Brossard
 
Persuasive AI: risks and opportunities in the age of digital debate
Speck&Tech
 
Building Resilience with Digital Twins : Lessons from Korea
SANGHEE SHIN
 
Smart Trailers 2025 Update with History and Overview
Paul Menig
 
NewMind AI Journal - Weekly Chronicles - July'25 Week II
NewMind AI
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Chris Elwell Woburn, MA - Passionate About IT Innovation
Chris Elwell Woburn, MA
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
HCIP-Data Center Facility Deployment V2.0 Training Material (Without Remarks ...
mcastillo49
 
Ad

Introduction to Aws lambda and build first application | Namespace IT

  • 2. Let’s talk about Lambda! AWS Lambda is a service which performs server less computing, which involves computing without any server. What is serverless ? Serverless computing is a method of providing backend services on an as-used basis. A serverless provider allows users to write and deploy code without the hassle of worrying about the underlying infrastructure.
  • 3. Confusion about the term “SERVERLESS” - The term ‘serverless’ is somewhat misleading, as there are still servers providing these backend services - But all of the server space and infrastructure concerns are handled by the vendor. - Serverless means that the developers can do their work without having to worry about servers at all.
  • 5. How AWS Lambda Works? • Step 1 − Uploads your code in Aws lambda with supported languages. • Step 2 − These are few AWS services on which AWS lambda can be triggered. • Step 3 − Aws Lambda uploads your code and triggers some event services Amazon S3, DynamodB, mobile app, Amazon SNS, Amazon Kinesis etc. • Step 4 − Executes AWS Lambda code when triggered by AWS services like - sending email, shore data in S3 bucket, hosting websites, push notification hit on http request etc.
  • 6. Scenario of server less service
  • 7. 1: Static Website Hosting Create a bucket in Amazon S3 and configure it for static website hosting. The static HTML, JS, and CSS will be served directly to user browsers from Amazon S3.
  • 8. 2: User Management Allow visitors to register as a new user, by providing and validating their email address. Amazon Cognito will be used to manage the User.
  • 9. 3: Serverless Service Backend Create a service backend using AWS Lambda and Amazon DynamoDB to handle requests from your frontend static website content.
  • 10. Advantages of using AWS Lambda • Minimized Cost • Faster Development • Easier Management • Multi Language Support • Billing based on Usage • $0.20 - per 1M requests • AWS Lambda is free by getting to AWS free tier
  • 11. Disadvantages of using AWS Lambda • No Control Over Environment • Not good for small size project • More Complex Call Patterns • AWS Lambda does not allow you to install additional software if you need to add. • After executing your software and if your software needs more time to execute & needs more memory, it shows timeout and the code will not be fully executed.
  • 12. AWS Lambda function code can be written in following languages − • NodeJS • Java, • Python • C# • Go.
  • 14. Step 1 : You have to login to the AWS console and then go to AWS Lambda services. Then show this screen and click to create function button -
  • 15. Step 2: After clicking the create function button you will show this screen. Then give the name of function. We write our function name helloWold. Then select runtime Python.
  • 18. Handler Details for Python • Note that the handler has to be the name of the file followed by the name of the function. In the above case, our file name is helloWorld.py and the name of the function is my_handler; so the handler will be helloWorld.my_handler.
  • 19. Handler Details for Python def my_handler(event, context): return "aws lambda in python using zip file“ Context Object in Python Context object gives details like the name of Lambda function - Time in milliseconds - request id - timeout etc. get_remaining_time_in_millis() : This method gives the remaining time millisecond until the lambda function ends the function. function_name() : It returns function name. function_version() : It returns the version of aws lambda function executing aws_request_id() : This gives the aws request id.

Editor's Notes

  • #7: This is what the completed architecture for our website will look like when complete.
  • #8: https://github.com/awslabs/aws-serverless-workshops/tree/master/WebApplication