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 

DynamoDB has high latency

4min
Pillar: Performance Efficiency Severity: Warning Frequency: 60 minutes Evaluation Interval: 3 minutes

Why do I see this?

One or more table operation calls such as GET, PUT, UPDATE, SCAN, or QUERY for one of your DynamoDB tables took more than 0.2 seconds to complete.

What does this mean?

DynamoDB is designed to have single-digit millisecond latency for most atomic operations such as GET and PUT. However, certain non-atomic operations such as QUERY and SCAN can experience higher latencies depending on various factors such as the complexity of the query conditions & filters and the size of the result set. Other causes of high latency in DynamoDB:

  • The client is too far away from the DynamoDb endpoint
  • There are too many DynamoDB calls per second
  • The table index has insufficient write capacity to perform heavy writing on the table
  • Consistent requests are causing higher average latency

This event notifies you when one of the DynamoDB operations in the last one hour took more than 0.2 seconds.

How do I fix "DynamoDB has high latency"?

Following are some of the measures you can take to reduce latency in DynamoDB:

  • Use Global Secondary Indexes (GSI) to speed up queries on non-key attributes and only define GSIs that are commonly used.
  • Use Eventually Consistent Reads rather than Strongly Consistent Reads as the latter ones have a higher average latency.
  • Reduce the distance between the client and the DynamoDB endpoints by using global tables.
  • Use caching with Amazon DynamoDB Accelerator (DAX) to reduce latency if the traffic is read heavy.

You can also checkout the AWS guide to learn more about troubleshooting high latency on Amazon DynamoDB.



Updated 03 Mar 2023
Did this page help you?
Yes
No
PREVIOUS
DynamoDB has write throttles
NEXT
DynamoDB Table is nearing provisioned WCUs
Docs powered by archbee 
TABLE OF CONTENTS
Why do I see this?
What does this mean?
How do I fix "DynamoDB has high latency"?