AWS - Lambda



  • AWS Lambda is a compute service where you can upload your code and run it as Lambda functions.
  • AWS Lambda takes care of provisioning and managing the servers where you run your Lambda functions.
  • You don’t have to worry about hardware or underlying software for running your application.
  • You can use Lambda as:
    • AWS internal event drive service, where Lambda runs your code in response to events created by AWS S3, AWS DynamoDB etc.
    • Response to HTTP requests, where Lambda executes your code based on HTTP request made through API Gateway or AWS Sdk.
  • Lambda events can trigger other Lambda events and AWS services.
  • Lambda scales automatically.
  • Lambda triggers:
    • API Gateway
    • AWS IoT
    • Alexa Skill Sets
    • Alexa Smart Home
    • Application Load Balancer
    • Cloudfront
    • Cloudwatch events
    • Cloudwatch Logs
    • Code commit
    • Cognito Sync Triggers
    • DynamoDB
    • Kinesis
    • S3
    • SNS
    • SQS
  • Supported programming languages:
    • Node.js
    • C#
    • Java
    • Python
  • Lambda scales out (not-up) automatically.
  • Lambda events are independent. 1 event = 1 function call.
  • Lambda is serverless. You do not have to manage any servers.
  • Lambda functions can trigger multiple other functions and AWS events.
  • AWS X-ray allows you to debug what is happening.
  • Lambda can do things globally.
  • Max execution time of Lambda is 5 minutes. If a function runs more that this, it is automatically killed by AWS.
  • Lambda needs Simple Microservice Permission to connect with API Gateway.
  • Lambda will need permissions to connect to other AWS services etc.


0 comments:

Post a Comment