Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to AWS Lambda with Python


Published on

A brief introduction to AWS Lambda using the Python programming language.

Published in: Technology
  • Hello! I can recommend a site that has helped me. It's called ⇒ ⇐ So make sure to check it out!
    Are you sure you want to  Yes  No
    Your message goes here

Introduction to AWS Lambda with Python

  2. 2. Software Engineer at “An advertising automation solution for ecommerce stores”
  3. 3. Agenda 1. About AWS Lambda 2. Getting Started 3. Benefits vs. Drawbacks 4. Use Cases 5. Useful Information 6. Python Demo
  4. 4. About AWS Lambda
  5. 5. ⬡ 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. — According to AWS Developer Guide AWS Lambda
  6. 6. Serverless are applications where some amount of server-side logic is written by the application developer but is run in stateless compute containers that are event-triggered, ephemeral, and fully managed by a third party. Serverless is also called Function As A Service (FaaS). — According to Martin Fowler Serverless
  7. 7. How does Serverless help? It helps developers focus on the core business problem and reduces the amount of code they need to write by abolishing the need to run servers and manage infrastructure.
  8. 8. Getting Started
  9. 9. Log in to AWS
  10. 10. Go To Lambda
  11. 11. Create your function
  12. 12. Execute the lambda function
  13. 13. 1. HTTP POST request 2. AWS CLI 3. Python boto3 library 4. Different types of event sources from other AWS resources (API Gateway, S3, Kinesis, SNS, Cloudwatch Logs/Events) Lambda function event sources
  14. 14. Benefits vs. Drawbacks
  15. 15. Built-in fault tolerance No infrastructure to manage Scale automatically up or down Pay only for what you use Extend AWS services with custom logic Benefits
  16. 16. 1. Lock into AWS ecosystem 2. New tech that is not battled tested throughout history 3. Long running task that cannot be split into smaller subtasks 4. Non customizable execution environment 5. Not ideal for complex computations with high resource requirements Drawbacks
  17. 17. Use Cases
  18. 18. API Gateway Example 1 - API Backend Lambda DynamoDB S3 1. Download static website 2. AJAX request to website 3. Proxy HTTP message 4. Get state from storage
  19. 19. Example 2 - Image Compression LambdaS3 1. User uploads photo 2. Notify that photo has been uploaded 3. Process photo and store result S3
  20. 20. CloudWatch Event Example 3 - Cron Management Lambda Every 5 minutes CloudWatch Event Lambda Every 6 hours
  21. 21. Example 4 - Auxilliary FaaS LambdaServer 1. Register to website 3. Async Invoke Lambda 4. Send confirmation e-mail Mailchimp 2. Save to database Database
  22. 22. Example 5 - Data Pipeline Lambda Redshift 1. Send data 2. Filtered data 3. Transformed data Lambda
  23. 23. Useful Information
  24. 24. Case Studies
  25. 25. ⬡ Google Cloud Functions ⬡ IBM OpenWhisk ⬡ Auth0 ⬡ Azure Cloud Functions Alternatives
  26. 26. References ⬡ AWS Lambda documentation ⬡ Awesome curated list of server less resources ⬡ Another list of awesome server less resources
  27. 27. Questions ?
  28. 28. “PYTHON DEMO” George Zografos Software Engineer @