79511212

Date: 2025-03-15 13:39:29
Score: 0.5
Natty:
Report link

You would need to change your solution approach due API gateway 30 second timeout.
API gateway request response has a maximum timeout of 30 seconds, anything above that would receive timeour errors.

You can change your solution in multiple ways

1. Have 2 lambda's first one attached to API gateway which takes the request and calls another lambda asynchronously and return request accepted to the API gateway.

2. Have 2 lambda's first one attached to API gateway which takes the request and sends as a message on SQS which is then asynchronously processed by the other lambda

3.Instead of using REST API gateway change to use websocket and then handle it if your client is expecting processing status

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Vikram S