Lambda + Api Gateway

One of the options for designing my project 202007010930

AWS Lambda:

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. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

API Gateway:

Amazon API Gateway is a fully managed service that makes it easy for developers to create, publish, maintain, monitor, and secure APIs at any scale. With a few clicks in the AWS Management Console, you can create an API that acts as a front door” for applications to access data, business logic, or functionality from your back-end services, such as workloads running on Amazon Elastic Compute Cloud (Amazon EC2), code running on AWS Lambda, or any Web application. Amazon API Gateway handles all the tasks involved in accepting and processing up to hundreds of thousands of concurrent API calls, including traffic management, authorization and access control, monitoring, and API version management. Amazon API Gateway has no minimum fees or startup costs. You pay only for the API calls you receive and the amount of data transferred out.

Pros

  • This combination of services would let us quickly and conveniently develop and deploy the code for our API, without much boilerplate.

  • It would also be using native AWS solutions, which Amazon is currently moving towards for internal development.

  • Lambda is frugal - we would only pay for the computing costs that the code actually uses.

    Cons

  • Many Lambda functions operate in a hold-cold fashion - the first call to a function after a long idle period results in a brief delay. This spin-up delay cannot be avoided entirely.

  • Lambda functions are time boxed, meaning we would have organize a distributed architecture for our code logic for it to process the data within the allotted time.

External reference: https://dzone.com/articles/the-pros-and-cons-of-aws-lambda

Created from: Project overview 202007010930


uid: 202007011239 tags: #amazon


Date
February 22, 2023