What is Amazon Kinesis Data Streams?
Learn how Kinesis captures ordered real-time records, how shards and partition keys affect scale, and how multiple consumers process a retained stream.
What is Amazon Kinesis Data Streams?
Amazon Kinesis Data Streams is a managed service for collecting and processing real-time streaming records. Producers write records with partition keys, records are ordered within a shard, retained data can be read by multiple independent consumers, and capacity can be provisioned or managed on demand.
How this topic fits
Messaging & events
Choose between queues, topics, event buses, and streams, then design delivery, ordering, replay, and idempotent consumers.
A stream is a retained ordered log
Unlike a queue, a consumer reading a stream does not remove records for other consumers. Each application tracks its own position and can process the same retained data for different purposes such as analytics, detection, enrichment, or archival.
Ordering exists within a shard, not across the whole stream. A partition key determines how producer records are grouped and therefore affects order, throughput distribution, and consumer parallelism.
Design partitioning and capacity together
A heavily concentrated partition key can create a hot shard even when total stream traffic looks acceptable. Choose keys with enough distribution while keeping together the records whose relative order matters.
On-demand mode manages capacity for variable traffic, while provisioned mode exposes shard planning. In both modes, understand service limits, scaling response, record size, producer retries, and the traffic expected during recovery.
Give each consumer an explicit contract
Consumers can use shared throughput or enhanced fan-out depending on latency and isolation needs. Lambda event source mappings can manage polling and batch invocation for function consumers.
Consumers must handle duplicates, schema versions, partial batches, poison records, and iterator progress. Treat replay as a deliberate operational capability, including how old code interprets retained records.
Watch lag, skew, and data loss risk
Monitor write throttles, read throughput, iterator age, consumer errors, and shard distribution. Iterator age is a direct signal that processing is falling behind the head of the stream.
Set retention long enough for realistic incident recovery and document replay procedures. If recovery time can exceed retention, copy important raw data to a durable store such as Amazon S3.
Go deeper with AWS
Read the primary AWS documentation behind the service definitions and architecture guidance in this guide.
Next steps
Continue with the concepts that most directly shape this decision.
Lambda event source mappings
Learn how Lambda polls queues and streams, creates batches, scales consumers, handles partial failures, and protects ordered processing.
What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
Questions about this topic
Browse all serverless concepts
Explore compute, APIs, events, workflows, data, security, reliability, operations, delivery, and AI from one connected AWS serverless learning path.
What is serverless?
Learn what serverless computing means, how it works on AWS, what the cloud provider manages, and which trade-offs still belong to your team.
What is AWS Lambda?
Understand how AWS Lambda runs code, how functions are invoked, where permissions and state live, and when Lambda is a good compute choice.
What is serverless architecture?
Learn how managed compute, APIs, events, queues, workflows, data, identity, and observability fit together in a serverless architecture on AWS.
AWS serverless security
A practical guide to identity, least privilege, event validation, secrets, data protection, dependencies, and incident visibility in AWS serverless systems.
What is agentic AI?
Learn what makes an AI system agentic, how models, tools, memory, orchestration, identity, and evaluation fit together, and where serverless patterns help on AWS.
What is cloud computing?
Understand how on-demand infrastructure and managed services change the way teams provision, scale, pay for, and operate software systems.
What is event-driven architecture?
Learn how producers, routers, and consumers communicate through events, and how to design schemas, delivery, retries, and ownership deliberately.
What is a serverless API?
Understand the request path, authentication, routing, compute, data, throttling, observability, and failure controls behind a serverless API on AWS.
What are serverless workflows?
Learn when explicit workflow state improves retries, branching, parallel work, human approval, visibility, and recovery in distributed applications.
What is Amazon API Gateway?
Learn how API Gateway creates, publishes, secures, monitors, and operates HTTP, REST, and WebSocket APIs for AWS and external backends.
What is Amazon EventBridge?
Understand EventBridge event buses, rules, pipes, schemas, targets, schedules, permissions, delivery, and recovery in event-driven AWS systems.
Make the next serverless decision explicit.
Explore focused products for repeatable work, or bring the architecture decision that needs context and experienced review.