ExitAmazon Kinesis Data Streams: replayable stream consumption1 / 9
Explanation

One retained stream, independent processing paths

How shared-throughput and enhanced fan-out consumers use shard capacity and retention to support independent, replayable serverless processing. · advanced

Amazon Kinesis Data Streams separates retained records from consumer progress. Reading a record does not remove it. Separate consumers can process the same records at different speeds and revisit them while they remain within retention.

This architecture uses a Lambda producer and two independent Lambda processors. Each processor has its own event source mapping, which manages reading and invokes its function with batches. The arrows show record movement through those mappings, not polling performed inside the function code.

The stream must expose Kinesis APIs: PutRecords, GetRecords, and SubscribeToShard. Neither Amazon Data Firehose nor Amazon MSK exposes this Kinesis API combination. Likewise, AWS Glue and Managed Service for Apache Flink can process streams, but neither is a Lambda function invoked by a Lambda event source mapping.

PutRecordsPolled batchesSubscribed batches
AWS LambdaProducer function
Amazon Kinesis Data StreamsRetained stream: partitioned into shards
AWS LambdaProcessor A: shared-throughput mapping
AWS LambdaProcessor B: enhanced fan-out mapping

1 / 5 The producer function creates records and supplies partition keys when writing them.

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