Throughput starts with partition keys and shards
How partition keys, shard limits, and capacity modes determine stream throughput, and how metrics reveal hot shards, throttling, and consumer lag so capacity can be adjusted. · associate
Amazon Kinesis Data Streams divides a stream into shards. Each shard has write limits for both bytes and records, plus read throughput and request limits. Either write limit can become the bottleneck: many small records can exhaust record capacity, while fewer large records can exhaust byte capacity.
Each record has a partition key. Under normal routing, Kinesis hashes that key into a shard's hash range. Records with the same key go to the same shard while that shard layout remains unchanged. Many active keys with reasonably balanced traffic help distribute writes; merely having many distinct keys does not help if one key produces most records.
A hot shard receives disproportionately heavy traffic. It can throttle writes even when other shards have spare capacity, because unused capacity elsewhere cannot absorb its writes automatically. Adding shards creates more capacity, but does not divide a single partition key's traffic across them.