ExitEvent Streaming: partitioned event logs1 / 9
Explanationassociate9 steps · 4 exercises

One event log, two readers

How partition keys govern record placement and ordering, and how independent consumers use their read positions to replay records within the retention window.

A partitioned event log stores records in several ordered sequences rather than one global sequence. In Amazon Kinesis Data Streams, each of those sequences is held in a shard. A producer supplies a partition key with each record.

Reading a record does not remove it. The stream keeps records for its configured retention window, so one application can follow new events while another rereads older ones. The arrows show where event records go and where consumers save progress, not the API requests they make to read.

Partition-keyed recordsNew recordsReplay recordsShard checkpointsShard checkpoints
Order event producerAWS Lambda
Order event stream (multiple shards)Amazon Kinesis Data Streams
Live order view consumerAmazon EC2
Rebuild consumerAmazon EC2
Checkpoints by consumer and shardAmazon DynamoDB table

Stage 1 of 6: The producer publishes events such as OrderPlaced and OrderShipped, using the order ID as the partition key.

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.