Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

293
Visualizações
Shouldn't we all migrate to Lambda@Edge from API-Gateway + Lambda stack for API serving?

Serving APIs from Lambda@Edge offers more latency benefit than serving APIs from API-Gateway + Lambda stack, if my understanding is correct.

Plus, cost of API-Gateway ($3.5/million call) + Lambda ($0.2/million call) == $3.7 / million call seems to be more expensive than Lambda@Edge ($0.6 / million call).

If both of the above observations are true, shouldn't we all migrate our API-Gateway + Lambda (for those who use this stack) to lambda@edge stack?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Lambda@Edge is primarily event driven for requests, yes the latency is reduced but it is designed to be used with an origin. Even if you have the Lambda@Edge function your CloudFront distribution would still need to reach out to the origin.

When the origin is an API Gateway (with or without a Lambda) there are so many benefits come with it such as:

  • Built in support for OpenAPI spec
  • Built in routing
  • Support for canary deployments
  • Authentication and authorization built in, with support for throttling per API user
  • Built in support for model schema validation
  • Support to manage your API as Infrastructure as Code: CloudFormation, Terraform, SAM
  • Each request can be developed separately, you can only have 1 Lambda@Edge function per event so you might see collisions in a team (not to mention very large functions).

If this was all needed to be done by Lambda@Edge then you would need to design, develop and maintain these features.

The price you refer to is for REST API, bare in mind there 3 kinds of API the cheapest is HTTP API which costs $1.00 per million requests.

over 4 years ago · Santiago Trujillo Relatório

0

Lambda@Edge has many limitations as compared to regular lambda. For examples:

  • its only for node.js and python,
  • no lambda layers!
  • no AWS X-Ray!
  • max timeout 30 seconds,
  • and many more.

Thus, it would be difficult in many cases to migrate to Lambda@Edge and to give up all these benefits of regular lambda.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda