Hello, I'm encountering two problems related to Lambda and API Gateway. Could you provide me with a potential solution for these issues?

0
  1. I'm currently using a Lambda function to host my Django application using Zappa, which has a size exceeding 1 GB. However, when I send the initial request to Lambda, the response times out because the default timeout set for API Gateway is 30 seconds. Is it possible to extend the default timeout for API Gateway?

  2. Additionally, I'm looking for an alternative solution to decrease the cold start period of Lambda, enabling it to handle the initial request more efficiently. Is there a way to achieve this?

1 個回答
1
  1. No, that's not possible today. I'd suggest that the client upload the file to S3 then have the Lambda function read it from there. Bear in mind that Lambda functions with larger memory sizes have increased CPU and network performance so that might help.
  2. I'd start with this blog post as it has a lot of good suggestions that cover a wide range of use cases.
profile pictureAWS
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南