Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

275
Views
Is it possible to remove API Gateway from the equation to serve Lambda over public internet?

Currently, my application resides in lambda which I serve using HTTP API (API Gateway V2). This setup exists in multiple regions. Meaning, API Gateway invokes lambda in the same region which accesses DynamoDB Global Table in the same region. I use Route 53 to serve nearest API Gateway to user.

The problem I faced: API Gateway doesn't support redirection from http to https. I can achieve this with CloudFront. But, it'll increase cost as well as latency.

Can I remove API Gateway from the equation and use Lambda@Edge to access DynamoDB Table near the user? Can CloudFront be used to replace API Gateway?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Yes you can. The docs write:

Functions triggered by origin request and response events as well as functions triggered by viewer request and response events can make network calls to resources on the internet, and to AWS services such as Amazon S3 buckets, DynamoDB tables, or Amazon EC2 instances.

However, there are many limitations to what lambda@edge can do, as compared to a regular lambda. Examples are:

  • only python and nodejs,
  • difficulty in debugging, as lambda logs will be in region when it runs, not in one central region,
  • timeout limits on calls to DynamoDb (5 or 30 seconds) depending if its origin or viewer function,
  • no lambda layers
  • max memory of 128 MB for viewer side functions
  • deployment package size can be max 1 MB for viewer side functions

Thus if you can work with these and other limitations of lambda@edge, then you can use it to work with DynamoDb.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!