Home / Companies / Lumigo / Blog / Post Details
Content Deep Dive

Tackling API Gateway Lambda performance issues

Blog post from Lumigo

Post Details
Company
Date Published
Author
Erez Berkner
Word Count
1,108
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

AWS API Gateway provides a powerful tool for creating a coherent API out of multiple disconnected remote function providers, but it introduces latency concerns that can be mitigated with proper configuration and alternative approaches. Common performance issues include cross-region function calls, resource-based versus role-based authentication, encryption/decryption of caches, and cold request starts, which can add hundreds of milliseconds to latency. Workarounds such as co-locating resources, modifying authentication, disabling cache encryption, and keeping serverless functions warm can help reduce the impact of these issues. Alternative approaches include hosting functions on EC2, containerizing serverless functions, evaluating other serverless hosts like Google Cloud Compute or Microsoft Azure Functions, and building a custom web server to bypass API Gateway translation. Ultimately, the choice between using AWS API Gateway with AWS Lambda depends on whether the latency introduced by this approach is too impactful to the user experience.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Serverless 25 245 48 21 -42%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.