ExitEvent Streaming: recoverable consumer pipelines1 / 9
Explanation

One retained history, two independent consumers

How independent consumers use checkpoints and retained events to recover serverless processing pipelines, accounting for duplicate delivery and retention limits. · advanced

A recoverable consumer pipeline separates retained input from consumer progress. Here, Amazon Kinesis Data Streams supplies two AWS Lambda consumers through separate event source mappings. Each mapping tracks its own progress through the shards; one consumer succeeding does not acknowledge records for the other or remove them from the stream.

The diagram shows payload flow, not checkpoint-control traffic. The projection needs an atomic transaction covering both derived state and a processed-event marker. DynamoDB supports this; S3 does not provide multi-object transactions, and OpenSearch does not provide atomic multi-document transactions. The archive instead needs durable raw objects with repeatable keys.

The source must support independent replay positions over retained records. SQS distributes queued work and deletes successfully handled messages; it is not that shared replayable log. Amazon Data Firehose delivers streaming data to destinations, but does not expose a Kinesis-style retained log with independent consumer checkpoints.

record batchestransactional updatesrecord batchesidempotent objects
Amazon Kinesis Data StreamsRetained event log
AWS LambdaProjection consumer; own event source mapping
Amazon DynamoDBProjection and processed-event markers
AWS LambdaArchive consumer; own event source mapping
Amazon S3Raw archive; deterministic object keys

1 / 6 Kinesis Data Streams retains records for its configured retention period. Reading a record does not delete it, and sequence positions belong to individual shards rather than one global stream order.

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