ExitAmazon Kinesis Data Streams vs Amazon Data Firehose: Lambda processing roles1 / 9
Explanation

The same compute service, two different jobs

How Lambda consumption of a retained Kinesis stream differs from Lambda transformation within a Firehose delivery pipeline. · associate

Amazon Kinesis Data Streams retains records for consumers to read. A Lambda function can process those records through a Lambda event source mapping, which reads the stream and invokes the function with batches. Processing does not remove the source records; they remain available within the retention period.

Amazon Data Firehose manages delivery to a configured destination. When Lambda transformation is enabled, Firehose invokes a function to prepare records, receives its results, and continues delivery. That function is a transformation step, not an independent reader of a retained Firehose log.

Choose the role by asking who owns the next action: custom consumer code handles stream processing, while Firehose owns delivery after its transformation function returns.

PointLambda consuming KinesisLambda transforming for Firehose
PurposeCustom stream processingPrepare records for delivery
Invocation mechanismLambda event source mappingFirehose invokes Lambda
Function outputApplication-defined workResults returned to Firehose
Replay sourceRetained Kinesis recordsNot a replayable Firehose log

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