"Streaming data into S3 needs custom code." Plenty of teams still do it: a fleet of workers reads events, batches them, retries failures, writes files, and someone gets paged when it falls behind. Amazon Data Firehose does that delivery job as a fully managed service: no servers to run, no shards to size, no consumer code to maintain.
What Firehose does
Producers (your apps, AWS services, agents on servers) send records to a Firehose stream. Firehose buffers them, optionally transforms them, and delivers them to a destination. You can also point a Firehose stream at an existing Kinesis data stream and let it drain that into storage. The service used to be called Amazon Kinesis Data Firehose; AWS renamed it in 2024, so you'll see both names in older articles.
Destinations
Firehose delivers to Amazon S3, Amazon Redshift (it stages data in S3 and runs a COPY), Amazon OpenSearch Service and OpenSearch Serverless, Splunk, Apache Iceberg tables, and HTTP endpoints, including several third-party observability providers. For most destinations you can also back up the raw records to S3.
Buffering: size or time
Firehose doesn't write every record as its own file. It buffers until a size or a time threshold is reached, whichever comes first. For S3 the defaults are 5 MB or 300 seconds, adjustable from 1 to 128 MB and up to 900 seconds (a zero-second interval delivers within a few seconds).
The trade-off is real: small buffers mean fresher data but many tiny files, which make queries slower and more expensive. Bigger buffers mean fewer, larger files and a few minutes of delay. For analytics, larger is usually better.
Shaping data on the way
- Lambda transformation: a function can clean, filter, enrich or mask records before delivery.
- Format conversion: Firehose can convert JSON into Apache Parquet or ORC using a schema from the AWS Glue Data Catalog. Columnar files are smaller and much faster for Amazon Athena or Redshift to query.
- Dynamic partitioning: Firehose can read a field such as a date or customer ID and write records into matching S3 prefixes (
customer=42/), so queries scan less data.
Firehose or Kinesis Data Streams?
They complement each other. Kinesis Data Streams is for applications that read in real time, keep data for replay and need several consumers. Firehose is for landing data somewhere with no code. A common pattern uses both: a data stream for live processing, plus Firehose reading the same stream to archive everything in S3.
Where AI fits
Good AI systems need data about how they are used: prompts, responses, user feedback, the events around them. Sending app events and chat logs through Firehose to S3, converted to Parquet and partitioned by date, gives you queryable datasets for evaluation, analytics and, where appropriate, fine-tuning. Do the privacy work on the way in: a Lambda transform can strip or mask personal data before anything is stored, and access to the bucket should be tightly limited.
Quick recap
- No servers, just delivery: producers in, destinations out.
- Buffer by size or time, whichever comes first.
- Convert to Parquet and partition for faster, cheaper queries.