ExitAmazon Kinesis Data Streams: shard-based consumption1 / 10
Explanationassociate10 steps · 5 exercises

One stream, parallel reads

How shards let consumers read in parallel without a stream-wide ordering guarantee, using EventBridge Pipes as a managed consumer.

A Kinesis data stream is divided into shards. Each shard holds a sequence of records. Because the sequences are separate, a consumer can make progress on one shard without waiting to finish reading another.

In this design, EventBridge Pipes is the managed consumer. One pipe reads from a stream with two shards and sends records to a Lambda function for processing. The arrows show where records move, not which way a read request is sent.

One Kinesis data stream
shard recordsshard recordsforwarded records
Shard AAmazon Kinesis Data Streams
Shard BAmazon Kinesis Data Streams
EventBridge pipeAmazon EventBridge
Record-processing functionAWS Lambda

Stage 1 of 4: Shard A and Shard B are two portions of the same stream, each with its own sequence of records.

Next up: Trace a request on what you just read.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.