Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

292
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda