Smart Insights Rules

Product Documentation
Smart Insights Rules
Navigate through spaces
⌘K
Smart Insights Rules
AWS Lambda
Lambda function runtime is upgradeable
Lambda function is nearing memory limit
Lambda function has over provisioned memory
Lambda function is near the concurrent limit
Lambda function has started to throttle requests
Lambda function is not tagged
Lambda function is nearing timeout
Lambda function has high error rate
Lambda function is not being used
API Gateway
API Gateway has high 4xx error percentage
API Gateway has high 5xx error percentage
API Gateway latency is nearing timeout
API Gateway has high latency compared to the previous day
DynamoDB
DynamoDB has read throttles
DynamoDB has write throttles
DynamoDB has high latency
DynamoDB Table is nearing provisioned WCUs
DynamoDB Table is nearing provisioned RCUs
Docs powered by archbee 

API Gateway latency is nearing timeout

5min



Pillar: Performance Efficiency Severity: Critical Frequency: 30 minutes Latency limit: 25 seconds Default timeout threshold: 30 seconds

Why do I see this?

One of your API endpoints is taking longer than 25 seconds to respond.

What does this mean?

Amazon API Gateway has a default upper timeout limit of 30 seconds for all HTTP API requests. It is not possible to configure an API endpoint to bypass the upper limit through the configuration settings. This limit ensures that the API integrations are designed to take less than 30 seconds to respond. If an API endpoint tries to take longer than 30 seconds to respond, the API Gateway will throw timeout errors. This event notifies you when one of your API endpoints took longer than 25 seconds to respond in the last 30 minutes.

How do I fix "API Gateway latency is nearing timeout"?

KloudMate uses this event to notify you when the latency goes over 25 seconds in order to give you enough time to investigate and remedy the situation before the API Gateway starts throwing timeout errors. Following are some of the things you can do to reduce the time taken by your API request:

  • Make sure that its backend integration only includes the logic needed to send an HTTP response to the client.
  • If there is any non-dependent or post-processing logic in the backend integration, consider moving it to any other service such as AWS Lambda.
  • Improving the backend integration performance can also help reduce its overall runtime. You can do that by enabling API caching.

Another thing to note is that sometimes components such as DNS servers may generate errors anywhere in the lifecycle of an API request causing the API gateway to throw timeout errors. To avoid this, consider implementing retries in the client application.



Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
API Gateway has high 5xx error percentage
NEXT
API Gateway has high latency compared to the previous day
Docs powered by archbee 
TABLE OF CONTENTS
Why do I see this?
What does this mean?
How do I fix "API Gateway latency is nearing timeout"?