Skip to Content

Big data ingestion pipeline

A fully serverless big data pipeline on AWS, from IoT devices through Kinesis, Firehose, S3, Lambda and Athena to QuickSight and Redshift, and why each piece is there.

The requirements

A company wants a pipeline that:

  • is fully serverless;
  • collects data in real time;
  • transforms the data;
  • lets them query the transformed data using SQL;
  • stores the reports created by the queries in S3;
  • loads that data into a warehouse and creates dashboards.

The architecture

A serverless big data ingestion pipeline: IoT Core sends device data to Kinesis Data Streams in real time; Firehose, with a Lambda transform, delivers it to an S3 ingestion bucket about every minute; the S3 event goes through an optional SQS queue to a Lambda function that runs an Athena query over the ingestion data; results land in a reporting bucket used by QuickSight dashboards and Redshift Serverless A serverless big data ingestion pipeline: IoT Core sends device data to Kinesis Data Streams in real time; Firehose, with a Lambda transform, delivers it to an S3 ingestion bucket about every minute; the S3 event goes through an optional SQS queue to a Lambda function that runs an Athena query over the ingestion data; results land in a reporting bucket used by QuickSight dashboards and Redshift Serverless

From devices to dashboards with no servers.
  1. IoT Core harvests data from IoT devices.
  2. Kinesis Data Streams collects it in real time.
  3. Data Firehose delivers it to S3 in near real time (about every minute), with Lambda helping Firehose transform the data.
  4. The ingestion bucket stores the raw data.
  5. S3 can send event notifications to SQS (optional; S3 could also invoke Lambda directly).
  6. Lambda subscribes to SQS and runs an Athena query.
  7. Athena is serverless SQL; it pulls data from the ingestion bucket and stores the results in S3.
  8. The reporting bucket contains the analysed data, used by reporting tools such as QuickSight and by Redshift (here Redshift Serverless, to stay serverless).

Why each piece

  • Kinesis Data Streams rather than SQS: ordered, replayable, real-time streams with several consumers.
  • Firehose rather than custom code: managed delivery and batching into S3, with optional Lambda transformation.
  • SQS between S3 and Lambda: a buffer that absorbs bursts and retries failed work.
  • Athena rather than a cluster: SQL on S3 with nothing to run between queries.
  • Redshift Serverless rather than a provisioned cluster: no capacity to manage, pay when queried.

Exam tips

  • "Serverless pipeline: collect in real time, transform, query with SQL, dashboards" → Kinesis Data Streams → Firehose (+ Lambda) → S3 → Athena → QuickSight.
  • "Near real-time delivery to S3" → Firehose. "Real-time ingestion" → Kinesis Data Streams.
  • "Transform records in flight with Firehose" → a Lambda transformation.

Common traps

  • "Firehose is real time." It buffers: near real time.
  • "Use EMR for a fully serverless pipeline." Classic EMR runs clusters; Athena, Glue or EMR Serverless fit "serverless".

Check yourself

Building the whole pipeline needs Kinesis shards and several services running, so instead:

AWS documentation

On this page

Open notes

Spotted a mistake?

These notes are open source. Suggest a fix, or star the repo if they helped you.

Suggest an edit

For AI agents: llms.txt · llms-full.txt