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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠