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.
| Point | Lambda consuming Kinesis | Lambda transforming for Firehose |
|---|---|---|
| Purpose | Custom stream processing | Prepare records for delivery |
| Invocation mechanism | Lambda event source mapping | Firehose invokes Lambda |
| Function output | Application-defined work | Results returned to Firehose |
| Replay source | Retained Kinesis records | Not a replayable Firehose log |
AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.