Amazon Kinesis 00:00:01 A click chooses a shard A music app uses Amazon Kinesis Data Streams to collect plays. Each event arrives with a partition key. That key determines a hash range and hence which shard receives the record. A producer sends a click with the partition key user-7. The hash of the partition key falls in the upper half of the simplified range. In our provisioned-shard standard-record example, check both bytes per second and records per second. Many tiny events can reach the record limit before filling the byte budget. The producer learns the shard and the sequence number. The response supplies the shard and sequence number. Ordering and capacity must be reasoned about at shard and producer boundaries; the stream does not provide one global order across every shard. 00:00:52 Split a busy range Many distinct listeners share a shard that has become busy. Splitting the hash range gives future records two child shards. Older records still exist in the parent within the retention period. Shard 1 is at its write limit. Many different keys share it. It takes no new records. Its old records remain readable. Each owns half of the range. A worker finishes the parent and then the children, so a key never goes backwards. A reader that must preserve the shard lineage processes its parent before advancing to its children. Separately consider retries and producer concurrency if the application promises order to a listener. 00:01:38 A worker repeats fifty-five records A consumer tracks how far it has successfully processed. The checkpoint and the destination are different stores unless the processing design explicitly unifies their commit. The worker loads the last completed sequence position from its checkpoint store. The effects are written to the target. The worker dies before it can save the checkpoint. Its replacement resumes from the stored checkpoint and sees the same fifty-five records. In this example the destination recognizes their event identifiers. Once the effects are confirmed, the worker advances the checkpoint. Give each effect a durable identity or an equivalent transactional boundary. Saving the checkpoint too early risks skipping effects; saving it after an effect can cause redelivery on failure. 00:02:29 Three consumers compete for read capacity The analytics, playback-history and monitoring teams each want the same records. Shared-throughput consumers compete for the shard's read capacity. Enhanced fan-out changes that allocation. It may use the whole 2 MB/s. They divide it. Under an even split of the illustrative two-megabyte-per-second shared capacity, each of three consumers gets about two thirds of a megabyte per second. Registered enhanced fan-out consumers get dedicated throughput per shard under the applicable service limits. A dedicated read path can solve consumer contention, but every writer for one very hot partition key can still land on the same shard. 00:03:15 A celebrity listener changes the key distribution A single broadcaster now produces more events than an ordinary user. The fleet average looks healthy, but one partition key accounts for most of the traffic. Both shards are half busy. All their events hash to shard 1. Add controlled suffixes to distribute the broadcaster's writes. Consumers that need one combined order must merge those substreams deliberately. If you split that key, the application's ordering contract must change or be reconstructed explicitly using reliable sequence information. Event time alone cannot resolve ties or missing events.