Skip to content

Latest commit

History

History
51 lines (36 loc) 路 1.44 KB

File metadata and controls

51 lines (36 loc) 路 1.44 KB

Serverless

The ultimate Abstraction Layer

  • Data Centres
  • Hardware
  • Assembly Code/Protocols
  • High Level Languages
  • OS
  • Application Layer/AWS APIs
  • AWS Lambda

AWS Lambda is a compute service where you can upload your code and create a Lambda function.

  • take care of provisioning and managing the server that used to run code
  • no need to worry about OS, patching, scaling , ...
  • scales out (not up) automatically
  • can trigger other lambda functions, 1 event can = x functions if functions trigger other functions
  • AWS X-ray allows to debug
  • can do things globally

Use cases:

  • Event-driven compute service where AWS Lambda runs code in response to event, eg: data change in S3 bucket, DynamoDB table

Serverless%2098b2e8064086440dac216de9d418e76d/Untitled.png

  • As a compute service to run your code in response to HTTP request or API calls

Serverless%2098b2e8064086440dac216de9d418e76d/Untitled%201.png

Traditional vs Serverless Architecture

Serverless%2098b2e8064086440dac216de9d418e76d/Untitled%202.png

Language support

  • Nodejs
  • Java
  • Python
  • C#
  • Go
  • PowerShell

Pricing

  • Number of Requests: First 1million free, $0.20 per 1 million after
  • Duration:
    • rounded up to the nearest 100ms
    • memory use
    • each has it's own price range