ExitAmazon Kinesis Data Streams: Lambda stream consumers1 / 9
Explanation

Lambda manages the stream reader

How Lambda event source mappings read stream shards into invocation batches, with starting positions, read permissions, ordered processing, and failure handling. · associate

An event source mapping is a Lambda resource that connects a Kinesis stream to a function. With a standard stream consumer, Lambda polls the stream's shards, gathers records into batches, and invokes the function synchronously. Kinesis does not directly invoke the function for each arriving record.

The mapping manages reading and progress; the function runs your processing code. The diagram separates these two Lambda responsibilities. Its arrows show record data, invocation batches, results, and failure notifications—not the direction of polling API requests.

Record dataInvocation batchBatch resultFailure metadata
Amazon Kinesis Data StreamsRetained records in shards
AWS LambdaEvent source mapping
AWS LambdaStream-processing function
Amazon Simple Queue Service (Amazon SQS)On-failure destination

1 / 6 Kinesis retains records in shards. Reading records does not remove them from the stream.

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