Prompt
Kinesis consumer lag keeps growing, what should I check first?
Latest observation
Nov 7, 2026
OpenAI APIWeb search: off
If Kinesis consumer lag is growing, the first things to check are the ones that tell you whether the consumer is falling behind or whether the stream is being overloaded:
-
Consumer processing rate vs incoming record rate
- Compare how many records/bytes the consumer is reading and processing per second to the shard input rate.
- If incoming throughput is higher than what the consumer can handle, lag will grow even if everything else is healthy.
-
Shard-level bottlenecks
- Check whether one or more shards are “hot.”
- A single hot shard can create lag even when the rest of the stream looks fine.
- Look at per-shard metrics for:
IncomingBytes,IncomingRecordsGetRecords.IteratorAgeMillisecondsReadProvisionedThroughputExceeded
-
Consumer errors/retries
- Check application logs for failures, retries, timeouts, or downstream dependency issues.
- If the consumer writes to a database, API, or queue that is slow, the consumer may be blocked waiting on that dependency.
-
Consumer capacity
- CPU, memory, thread pool saturation, GC pauses, container throttling, or instance limits can reduce processing speed.
- If using Lambda, check concurrency limits and batch processing duration.
-
Kinesis polling / checkpointing behavior
- Make sure the consumer is polling frequently enough and checkpoints are being written successfully.
- If checkpoints are delayed or failing, lag can appear worse or recovery can be slow.
-
Enhanced Fan-Out vs shared throughput
- If you’re using shared throughput consumers, another consumer may be competing for the 2 MB/s per shard read limit.
- Enhanced Fan-Out reduces this contention.
Quick first-pass triage
- Check
IteratorAgeMilliseconds- If it’s rising steadily, the consumer is behind.
- Check
ReadProvisionedThroughputExceeded- If non-zero, you’re likely hitting read limits.
- Check app CPU / downstream latency
- If consumer resources or downstream calls are slow, that’s often the root cause.
If you want, I can give you a step-by-step checklist for CloudWatch metrics and common root causes by consumer type (Lambda, ECS, EC2, Kafka connector, etc.).