AWS · Analytics

Amazon Kinesis

Real-time streaming: Kinesis Data Streams captures ordered records for custom consumers, and Data Firehose delivers streams to storage and analytics.

On the SAA-C03 exam listStream processingServerless

What it is and what problem it solves

Amazon Kinesis collects and processes streaming data such as clickstreams, logs, IoT telemetry and application events.

  • Kinesis Data Streams stores an ordered stream of records split into shards (or capacity managed on demand). Many consumers can read the same data independently, records are kept for 24 hours by default and up to a year, and they can be replayed. Records with the same partition key stay in order within a shard.
  • Amazon Data Firehose (formerly Kinesis Data Firehose) delivers streaming data to destinations (S3, Redshift, OpenSearch, Splunk, Iceberg tables and HTTP endpoints), buffering, batching, converting and compressing it. There is nothing to manage and no consumers to write.

Video is handled separately by Kinesis Video Streams.

Producersapps, IoT, logsKinesis Data Streamsshards · ordered · replayData Firehosebuffer · transform · deliverLambda / custom consumersreal timeManaged Service for Flinkstreaming SQL/analyticsas a sourceS3 (Parquet), Redshiftnear real timeOpenSearch, Splunk, HTTP
Streaming on AWS: Data Streams for real-time consumers and replay, Data Firehose to deliver into stores

When to use it

  • Real-time analytics and dashboards on event streams.
  • Several applications must read the same ordered stream, each at its own position, and replay it.
  • Loading streaming data into S3 or Redshift with near-real-time delivery and no code (Firehose).

When to avoid it

  • Simple task queues where each message is processed once: SQS.
  • Apache Kafka APIs and ecosystem: Amazon MSK.
  • Event routing by content across AWS services: EventBridge.

Scaling model and bottlenecks

Provisioned streams scale by shard count; each shard has fixed write and read throughput. On-demand streams adjust capacity automatically up to a Regional ceiling. Choose a partition key with many values so records spread across shards; a hot key throttles one shard. Enhanced fan-out gives each consumer its own read throughput per shard.

Performance, latency and throughput

Data Streams delivers records to consumers within about a second; Firehose buffers by size and time, so delivery takes from about a minute upward depending on the buffer interval.

Limits and quotas

ItemValueContextSource
Write throughput per shard 1 MB per second or 1,000 records per second Provisioned mode. Source
checked
Read throughput per shard 2 MB per second Shared by standard consumers; enhanced fan-out consumers each get their own. Source
checked
Maximum record size (Data Streams) 10 MiB Before base64 encoding. Source
checked
Retention (Data Streams) 24 hours by default, up to 365 days Source
checked
Enhanced fan-out consumers per stream 20 On-demand Standard and provisioned streams. Source
checked
Maximum record size (Firehose) 1,000 KiB Source
checked
Firehose buffer interval 60 to 900 seconds Source
checked

Quotas and limits change. Check the linked source before designing around a number.

Cost model

What you pay for

  • Data Streams provisioned: shard-hours and PUT payload units, plus extended or long-term retention and enhanced fan-out.
  • Data Streams on-demand: data in and out per GB and a per-stream hourly charge (Standard), or data in and out with an account-level minimum (Advantage).
  • Firehose: per GB ingested (records rounded up to 5 KB for some sources), plus format conversion, dynamic partitioning and VPC delivery.

Where it is cost-efficient

Steady, predictable streams on provisioned shards; Firehose for straight delivery to S3 without consumer code.

Where costs grow

Many small records (rounding), long retention, many enhanced fan-out consumers, and idle provisioned shards.

Cost controls and common surprises

Aggregate small records, match shard count to load (or use on-demand for variable load), and keep retention only as long as replay requires.

Prices differ by Region and change over time; see the pricing page linked under Sources.

Security

Controls the service provides

Server-side encryption with KMS, TLS in transit, IAM policies on streams, and VPC endpoints.

What you configure

Encrypt streams with KMS, restrict producers and consumers by IAM, and avoid sensitive data in partition keys.

Logging and monitoring

CloudWatch metrics (iterator age, throttling), CloudTrail for API calls.

Related security services

KMS, IAM, Lambda, Managed Service for Apache Flink.

Shared responsibility

AWS runs the stream infrastructure. You control access, encryption and what you put in records.

Availability, backup and failure behavior

Data Streams replicates data across three Availability Zones; consumers checkpoint their position and resume after failures.

Common service combinations

Lambda or Managed Service for Apache Flink as consumers, Firehose to S3 for a data lake, Athena on the results, DynamoDB Streams and CloudWatch Logs as sources.

Business application examples

  • Clickstream events analysed in real time for recommendations and also archived to S3 by Firehose.
  • IoT sensor readings processed by several independent applications.

Exam cues and common confusions

  • Real-time, ordered, multiple consumers, replay: Kinesis Data Streams.
  • Load streaming data into S3, Redshift or OpenSearch with no code: Data Firehose (near real time, buffered).
  • Kafka: MSK. Queue, one consumer per message: SQS.
  • Throttling on one shard: hot partition key; spread keys or add shards.

Related

Courses and lessons

Services, comparisons and patterns

Sources

Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake