Lambda

  • Compute service to upload and run your code
  • AWS Lambda takes care of provisioning and managing the underlying infrastructure
  • Lambda scales out (not up) automatically
  • Usage
    • Event-driven compute service which runs code in response to events. Events could be internal AWS events.
    • Compute service to run your code in response to HTTP requests using AWS API Gateway or API calls made using AWS SDKs.
  • Lambda functions are independent, 1 event = 1 function
  • Lambda is serverless
  • Lambda functions can trigger other lambda functions, 1 event can trigger multiple functions
  • Architectures can get extremely complicated, AWS X-ray allows you to debug what is happening
  • Lambda can do things globally, you can use it to back up S3 buckets to other S3 buckets, etc
  • Lambda is cost effective
  • No servers, no maintenance is required

Lambda is the Ultimate Extraction Layer

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

Languages supported by Lambda

  • Node.js
  • Java
  • Python
  • C#
  • Go
  • PowerShell

Pricing

  • Number of Requests
  • Duration
    (from the time your code begins executing until it returns or otherwise terminates, rounded up to the nearest 100ms)

How to Build Alexa Skill

  • Skill Service
    • AWS Lambda
  • Skill Interface
    • Invocation Name
    • Intent Schema
    • Slot Type
    • Utterances

Cloud Architecture

  • Traditional
    ELB -> EC2 Instances -> RDS
  • Serverless
    API Gateway -> Lambda -> DynamoDB

Majd Arbash

...

Leave a Reply