Queues in Amazon Kinesis Data Streams - What They Deliver, What They Do Not Order, and Which Consumer Limit They Share

First Published:
Last Updated:

On November 17, 2026, Amazon Kinesis Data Streams added queues. With queues, consumers can receive records without leasing shards and acknowledge (ack) each record individually after processing. This eliminates the need for shard allocation, checkpoints, and DynamoDB lease tables. However, a queue does not take on everything. It does not guarantee delivery in the order records are written, nor does it guarantee that records will be delivered exactly once. Queues are not supported with provisioned streams. A queue is counted as one of the registered consumers and shares the same consumer limit as enhanced fan-out consumers. Acknowledged records remain in the stream, while unacknowledged records are deleted when the stream's retention period expires.

This article sets out what queues take on and what they do not, grouped into what they deliver, order and delivery count, supported streams, the consumer limit, where records are kept, and dead-letter handling. It compares them in one table with the existing ways of reading (shared throughput GetRecords and KCL, and enhanced fan-out). It also puts the 12 API operations, the 11 metrics, and the IAM permissions and condition keys in tables.

This article is based on documentation read on December 5, 2026. It was written shortly after re:Invent 2026 (November 30 – December 4, 2026), and the Kinesis Data Streams documentation may change subsequently. Pricing and cost comparisons are not covered.

Related articles on this site:

Table of Contents

  1. 1. Scope and Assumptions
  2. 2. Queues and the Other Ways to Read a Stream
  3. 3. What a Queue Delivers
  4. 4. What a Queue Does Not Take On
  5. 5. The Shared Limit and Where Records Are Kept
  6. 6. Dead-Letter Records
  7. 7. APIs, Metrics, and IAM
  8. 8. Where Pages Describe Things Differently
  9. 9. What to Check Before Adding a Queue
  10. 10. Frequently Asked Questions About Kinesis Data Streams Queues
  11. 11. Summary
  12. 12. References

1. Scope and Assumptions

This chapter first defines the intended audience, the scope of this article, the referenced materials, the notation used, and the terminology. The following eight points represent the core conclusions.

  • A queue is a consumption pattern where records are received without leasing a shard. A queue consumer does not require a DynamoDB table, shard leases, or a KCL. Consumer instances can be added regardless of the number of shards (see Chapter 2).
  • A queue takes on receiving, the visibility timeout, acknowledgment (ack), redelivery, and dead-letter handling. A single receive returns up to 10 records. The visibility timeout defaults to 30 seconds and ranges from 0 to 43,200 seconds (see Chapter 3).
  • A queue does not guarantee delivery in the order records were produced. Occasionally, a record that has already been acknowledged may be delivered again. The API reference and developer guide say so. Consumers must be designed to be idempotent (see Chapter 4).
  • A queue is only available with On-demand Standard and On-demand Advantage streams. It cannot be used with provisioned streams (see Chapter 4).
  • Whether a Lambda event source mapping (ESM) can read a queue is not stated on the Lambda pages this article read (see Chapter 4).
  • A queue counts as one of the registered consumers and shares the same limit as enhanced fan-out consumers. This limit is 20 per stream for On-demand Standard and 50 for On-demand Advantage. Whether this limit can be increased is not documented in either the queue documentation or the quotas documentation (see Chapter 5).
  • Records delivered by a queue remain in the stream. Acknowledgment (ack) only changes the delivery status in the queue. Records that are not acknowledged will be deleted when the stream's retention period expires. The queue itself does not have its own retention period (see Chapter 5).
  • Dead-letter processing is enabled by default and is a state in the same queue. The MaxReceiveCount is set to a default of 6, and can be configured between 1 and 1,000. It can be disabled by setting TargetType to NONE (see Chapter 6).

1.1 Intended Readers

This article is for readers who are currently using Kinesis Data Streams with KCL or Lambda's event source mapping (ESM) and are looking to determine if using a queue can reduce the effort involved in managing shard allocation, checkpoints, and re-sharding. We also aim to assist those who are considering whether to use SQS or Kinesis and are looking to confirm if a "queue" refers to the same concept as SQS. We assume a basic understanding of shards, partition keys, retention periods, and enhanced fan-out.

1.2 What This Article Covers and What It Does Not

This article covers what a queue takes on and what it does not, and how that differs from the existing ways of reading a stream.

We leave the following topics to existing articles on this site:


The comparison of SQS and Kinesis is limited to one column of Table 1. We do not cover pricing, cost comparisons, or the billing units for on-demand usage. Nor do we cover Amazon Data Firehose, Amazon Managed Service for Apache Flink, streaming tables, or delivery to Amazon S3.

1.3 Checked Date and Materials Read

The checked date is 2026-12-05. The following materials were read:

  • Amazon Kinesis Data Streams Developer Guide (the 8 pages of the queue chapter, plus the overview, terminology and concepts, enhanced fan-out consumer, quotas and limits, and document history pages)
  • Amazon Kinesis Data Streams API Reference (the 12 queue operations, plus QueueAttributes, QueueRecord, DeadLetterConfiguration, and RegisterStreamConsumer)
  • Service Authorization Reference, the Kinesis Data Streams page
  • AWS CloudFormation Template Reference (AWS::Kinesis::Queue, AWS::Kinesis::StreamConsumer)
  • AWS Lambda Developer Guide and API Reference, the Kinesis ESM pages
  • Amazon SQS Developer Guide (Standard Queues, Visibility Timeout, Dead-Letter Queue, Message Quotas)
  • The What's New announcement (2026-11-17), the announcement post on the AWS Big Data Blog (2026-11-17), and the Kinesis Data Streams FAQ

As of the checked date, there were no "What's New" announcements related to Kinesis Data Streams from re:Invent 2026. However, the latest entry in the "What's New" list was dated 2026-12-02, and announcements from the latter half of the conference had not yet been published. The most recent update in the Developer Guide's document history was the addition regarding queues, dated 2026-11-17.

The AWS Regions where queues can be created are listed in the "Supported AWS Regions" table in the queue chapter of the Developer Guide. As of the checked date, this table listed 33 Regions.

1.4 Statement Labels

This article attaches one of the following four labels to each statement:

LabelMeaning
StatedThe information is documented in either the Developer Guide, API Reference, Service Authorization Reference, or CloudFormation Reference. The text names the document.
AnnouncedThe information is found only in What's New, the Big Data Blog announcement post, or the FAQ, and is not found in the Developer Guide or API Reference documents referenced in this article.
Not statedThe information could not be found within the pages reviewed for this article. This does not constitute proof that the information does not exist.
InferenceThe statement is derived from the information presented in the documentation.

Not stated is used only for information that could not be found after searching using multiple variations of search terms. Do not read Not stated as meaning that the information is impossible or unavailable. This article does not include demonstrations, and contains no values obtained from actual testing.

1.5 How Terms Are Used

The terms "queue" and "consumer" can refer to different things depending on the context. This article uses these terms as follows:

  • queue: Unless otherwise specified, refers to a Kinesis Data Streams queue. For an Amazon SQS queue, this article writes "SQS queue."
  • queue consumer: An application that receives records from a queue. This is the term used in the developer guide.
  • consumer instance: A single, running instance of that application.
  • stream consumer: An application that reads directly from a stream, bypassing a queue. This includes both shared throughput consumers and enhanced fan-out consumers.
  • registered consumer: Something registered with a stream that uses one of the stream's registered consumer slots. There are two types: enhanced fan-out consumers and queues. This usage of "consumer" is distinct from the application-side meaning.
  • ack: Notifying the queue, with the AcknowledgeQueueRecords operation, that records have been processed.
  • in flight: The state of records that a consumer instance has received but has not yet acknowledged.

2. Queues and the Other Ways to Read a Stream

This chapter sets queues beside the other ways to read a stream.

2.1 Three Ways to Read a Stream

The developer guide divides consumers into two types: stream consumers and queue consumers (Stated).

A consumer is either a stream consumer, which reads the stream directly, or a queue consumer, which consumes the stream through a queue.

Stream consumers can read data using either GetRecords with a shared throughput, or using enhanced fan-out consumers via SubscribeToShard. Both types read data in units of shards, and only one consumer instance can read a single shard concurrently. The developer guide's terminology page states (Stated):

Each shard is read by one stream consumer instance at a time, which preserves the order of the records in that shard.

Queue consumers do not read data in units of shards. The queue page of the developer guide states (Stated):

Queue consumer instances do not lease shards. Each instance receives the next visible record, so you can add instances to process more records in parallel.

The same page also states that queue consumers do not require DynamoDB tables, shard leases, or a KCL (Stated). How a KCL assigns shards through its lease table is left to Who Assigns Shards and Partitions to a Stream Consumer on AWS. Because queues do not utilize shard leases, consumers do not need to determine where to resume reading after a shard is split or merged (Inference). How stream consumers are handled after re-sharding is left to Where a Kinesis Consumer Resumes After a Shard Splits or Merges.

2.2 Table 1: What Each Way of Reading Holds, and Who Holds It

The following table sets the three ways side by side, with an SQS standard queue for reference. The SQS column is only for comparison and is not for deciding which to choose.

ItemShared Throughput Consumer (GetRecords, KCL)Enhanced Fan-Out Consumer (SubscribeToShard)Queue (ReceiveQueueRecords)Reference: Standard SQS Queue
Reading UnitShard. A single shard is read by one consumer instance.Shard. A single shard is read by one consumer instance.Receives the next visible record from the queue. Does not lease a shard.From the queue, receives a message.
Who Manages ProgressConsumer-side. KCL writes checkpoints to the lease table.Consumer-side.The queue maintains the delivery status for each record.SQS maintains the status for each message.
OrderingReads in the order written within a shard.Reads in the order written within a shard.Not guaranteed to arrive in the order written.Best-effort.
Delivery CountOutside the scope of this article.Outside the scope of this article.At least once. Occasionally, it may be delivered again after acknowledgment (ack).At least once.
Upper Limit of Consumer InstancesNumber of shards (Inference).Number of shards (Inference).Can be added regardless of the number of shards.Outside the scope of this article.
Registered Consumer LimitNot counted (Inference).Counts as one.Counts as one.Not applicable.
Stream Capacity ModeProvisioned and on-demand.Provisioned and on-demand.On-demand only.Not applicable.
Records After ProcessingRemain in the stream.Remain in the stream.Remain in the stream even after acknowledgment (ack).Deleted using DeleteMessage.
Record Retention PeriodStream retention period (24 hours to 8,760 hours).Stream retention period.Stream retention period. The queue does not have its own retention period.Queue retention period (60 seconds to 14 days, default 4 days).
Handling of a Single Record That Cannot Be ProcessedBuilt by the consumer.Built by the consumer.Moved to a dead-letter state within the same queue after reaching MaxReceiveCount.Sends to a separate SQS queue configured as a dead-letter queue.

The source for each row in the table is as follows.

  • In the Reading Unit and Ordering rows, the stream consumer columns are based on the developer guide's terminology page and overview page (Stated). The queue column is based on the developer guide's queue page and the API reference (Stated).
  • In the Who Manages Progress row, the KCL lease table and checkpoints are based on the Big Data Blog (Announced). "Consumer-side" in the enhanced fan-out column is an inference (Inference). The queue column is based on the developer guide's queue page (Stated).
  • In the Upper Limit of Consumer Instances row, the stream consumer columns are an inference from the terminology page, which states that only one consumer instance reads a shard at a time (Inference). The Big Data Blog states that with 10 shards, at most 10 instances process them (Announced).
  • The Registered Consumer Limit row is based on the developer guide's quota page, which states that both enhanced fan-out consumers and queues use this limit (Stated). That shared throughput consumers are not counted is an inference from it (Inference).
  • In the row on a single record that cannot be processed, the stream consumer columns are based on the Big Data Blog (Announced). The blog states that because a checkpoint is a single position in a shard, you cannot record one record as failed and the next one as done.
  • The SQS column is based on the SQS developer guide's standard queue, visibility timeout, dead-letter queue, and message quota pages (Stated). Deleting a message using DeleteMessage is based on the Kinesis Data Streams FAQ (Announced).

2.3 Figure 1: Three Ways to Read a Stream and What Each Leases

Three Ways to Read a Kinesis Data Stream and What Each Leases
Three Ways to Read a Kinesis Data Stream and What Each Leases
Figure 1 illustrates three different ways to read the same stream. The two on the left read the stream in units of "shards," while the queue on the right receives records without leasing shards. All three methods read the same records, and these records remain in the stream until the stream's retention period expires. The queue and the enhanced fan-out consumer use the same registered consumer limit. In the figure, these two are enclosed in a dotted border.

2.4 What Stays the Same When You Create a Queue

The developer guide states that creating a queue does not change anything for the producer or the stream consumer (Stated).

Adding a queue therefore does not change anything for your producers or your stream consumers: they keep writing and reading as before, and a queue consumer and a stream consumer can process the same records independently.

Multiple queues can be created for a single stream. Each queue keeps its own delivery state, separate from the other queues (Stated). The Big Data Blog describes creating one queue for each reading application (Announced).

You can create several queues for a stream, one for each consuming application.

A single queue can only read from one stream. When using CreateQueue, you pass exactly one item in the StreamConfigurationList (Stated).

3. What a Queue Delivers

Of what a queue takes on, this chapter covers receiving, the visibility timeout, ack, and redelivery. Chapter 6 covers dead-letter handling.

3.1 Up to 10 Records per Receive

The queue consumer receives records with the ReceiveQueueRecords operation. The API reference states that it receives up to 10 records at a time (Stated). The default value for Limit is 10, and the valid range is from 1 to 10.

Receives up to 10 records from the specified queue.

The queue consumer's process is a loop: receive, process, and acknowledge (ack) the processed records (Stated). Once a record is received, it is in flight, and while it is in flight, other consumer instances cannot see it.

3.2 Visibility Timeout

The time a received record remains in flight is determined by the visibility timeout. If the visibility timeout expires before an acknowledgment (ack) is sent, the record becomes visible again and may be delivered to any consumer instance (Stated).

The visibility timeout values are as follows (Stated):

  • For a queue, the default is determined by the VisibilityTimeoutSeconds value in the QueueAttributes. If not specified during queue creation, the default is 30 seconds.
  • The range is from 0 seconds to 43,200 seconds (12 hours).
  • For a single receive operation, the VisibilityTimeoutSeconds value in ReceiveQueueRecords can override the queue's default.
  • The visibility timeout for records in flight can be modified using UpdateQueueRecordsVisibility. Setting it to 0 seconds will immediately make the record visible again.
  • While UpdateQueue can change the queue's default visibility timeout, records already in flight will retain the visibility timeout value that was in effect when they were initially received.

The developer guide recommends setting the visibility timeout to a value longer than the time it takes for a consumer to process a single record (Stated). If the timeout is too short, a record that is currently being processed may be delivered again, leading to duplicate processing and an increase in the ReceiveCount for records that have not actually failed. If the timeout is too long, records processed by a consumer instance that has stopped without acknowledging will remain in flight until the visibility timeout expires. If processing times vary, it is best to align the timeout with the most common processing time, and extend the timeout for records that take longer using UpdateQueueRecordsVisibility.

3.3 Receive Wait Time

If no records are available, ReceiveQueueRecords will wait for the duration specified in WaitTimeSeconds before returning (Stated). The default value is 9 seconds, with a range of 1 to 20 seconds. If a record becomes available during the wait period, it will return immediately. If the wait time expires and no records are available, it will return an empty list. The developer guide states that because of this, consumer instances do not need to retry at their own intervals when the queue is empty (Stated).

3.4 Acknowledging Records (ack)

AcknowledgeQueueRecords acknowledges up to 10 records at a time (Stated). Once a record is acknowledged, the queue will not deliver it again, with rare exceptions, which Section 4.2 covers.

The ack response returns a success or failure for each entry. The API reference says to check the Failed list even if the HTTP status code is 200 (Stated). The responses for UpdateQueueRecordsVisibility and the dead-letter operations take the same form.

3.5 Values a Record Carries

The records delivered by a queue are the same as the records read by a stream consumer. Data, PartitionKey, and ApproximateArrivalTimestamp retain their values as they were when written to the stream (Stated). The queue adds the following values (Stated).

  • RecordId: Refers to the record itself. It remains the same regardless of how many times it is delivered, and it is the same value in any queue on the same stream.
  • ReceiptHandle: Represents a single delivery. It is used to acknowledge, to change the visibility timeout, and to restore from dead-letter. It is only valid while the record is in flight and receives a new value with each delivery.
  • FirstReceiveTimestamp: The time at which the queue first delivered the record.
  • ReceiveCount: The number of times the queue has delivered the record.

The queue does not return the record's sequence number. The developer guide's terminology page explains the reason for this as follows (Stated).

A queue does not return the sequence number of the records it delivers, because a sequence number identifies a record's position within its shard, and a queue consumer is decoupled from shards.

3.6 Starting Position and What Cannot Change After Creation

When creating a queue, you select the point in the stream from which data will be delivered (Stated). You can choose from three options: LATEST (the default), TRIM_HORIZON, and AT_TIMESTAMP. If the timestamp specified in AT_TIMESTAMP is earlier than the oldest record remaining in the stream, data will be delivered from the oldest record. A cross-service comparison of starting positions is left to Where a Stream Consumer Can Start on AWS.

Once created, the starting position and the stream that the queue reads cannot be changed (Stated). Only the visibility timeout and the dead-letter settings can be changed with UpdateQueue. To read from a different position or a different stream, you must create a new queue.

You can't change the data stream or the starting position of a queue after you create it. To read from a different stream or position, create a new queue.

CreateQueue is an asynchronous operation (Stated). The queue transitions from a CREATING state to an ACTIVE state, and you can receive records only after it becomes ACTIVE. The ReceiveQueueRecords API documentation also states that records are delivered only while the queue is in the ACTIVE state.

4. What a Queue Does Not Take On

This chapter covers what a queue does not promise: delivery in written order, exactly-once delivery, provisioned streams, and Lambda ESMs.

4.1 Delivery in Written Order

The queue does not guarantee that records are delivered in the order in which producers wrote them. The API reference page for ReceiveQueueRecords states the following (Stated):

Records are not necessarily received in the order they were written to the data stream.

The developer guide's queue page states the same thing (Stated).

A queue consumer does not necessarily receive records in the order that producers wrote them to the stream.

The Big Data Blog describes the same thing as "best effort" (Announced).

Delivery is at least once, and ordering is best effort.

The blog's comparison table indicates that stream consumers maintain order based on the partition key, while queue consumers get "best effort" ordering (Announced). Order by partition key applies to stream consumers, not to queues. This article treats queue ordering in the words of the API reference and developer guide, and does not read "best effort" as a stronger guarantee.

The developer guide recommends reading directly from a stream rather than using a queue when processing one record depends on earlier records (stateful processing) (Stated). Examples include live analytics, personalization, and anomaly and pattern detection. Queues are best suited for tasks that can be processed independently (stateless processing), such as microservice integration, order processing, and per-record inference (Stated). Cross-service ordering guarantees are left to What Breaks Ordering, Service by Service on AWS.

4.2 Exactly-Once Delivery

The queue guarantees that records are delivered at least once. The developer guide states that records may occasionally be delivered a second time, even after an acknowledgment (ack) (Stated).

Queues deliver records at least once. In rare cases the queue can deliver a record again even after you acknowledge it. Design your queue consumer to be idempotent, so that processing the same record more than once is safe.

The API reference page for AcknowledgeQueueRecords also states that, in rare cases, acknowledged records may be received again (Stated). The pages this article read give the following four cases in which a record arrives again. The first three come from the developer guide (Stated), and the fourth from the Big Data Blog (Announced).

  • The visibility timeout expires before the ack.
  • On rare occasions, a record arrives again after the ack.
  • A dead-letter record is restored to the normal receive path (Section 6.3).
  • A producer writes the same data again.

The fourth case occurs outside the queue. The Big Data Blog states that a duplicate written by a producer retry arrives as a new record with a different RecordId (Announced).

A producer retry, however, writes the same data to the stream a second time, and the duplicate arrives as a new record with a different RecordId.

Therefore, the blog recommends using business-specific IDs, such as order IDs, as the key for side effects. If a record has no business-specific ID, or if you do not control the producer, the blog says to use the RecordId (Announced). Relying only on the RecordId to detect duplicates misses the fourth type of duplicate (Inference).

4.3 Provisioned Streams

Queues are only available with On-demand Standard and On-demand Advantage streams. The developer guide's queue quota page states the following (Stated).

A queue works only on a stream in On-demand Standard or On-demand Advantage capacity mode. Provisioned mode is not supported.

The API reference for CreateQueue only says "on-demand capacity mode" (Stated). The description of the CreateQueue ValidationException includes the case where the operation is not supported in the stream's capacity mode (Stated).

Even after creating a queue, certain limitations remain. The API reference for DeleteQueue states that all queues associated with a stream must be deleted before deleting the stream, and before switching from on-demand to provisioned (Stated).

You must delete every queue on a data stream before you can delete the stream, or switch it from on-demand to provisioned capacity mode.

4.4 Lambda Event Source Mappings

Whether a Lambda ESM can read a queue is not stated on the Lambda pages this article read (Not stated). The Lambda developer guide's Kinesis ESM page describes what an ESM can read as follows (Stated):

You can map a Lambda Event Function to a standard iterator or enhanced fan-out consumer.

This article reviewed two pages from the Lambda developer guide and the CreateEventSourceMapping API reference, conducting three searches with slightly different wording. No mentions of queues were found. This does not necessarily mean that you cannot read queues within ESM. If you assume that Lambda can read a queue, check the Lambda documentation before you rely on it.

5. The Shared Limit and Where Records Are Kept

This chapter covers what a queue uses on the stream and where records stay.

5.1 The Registered Consumer Limit

A queue is counted as one of the registered consumers. The queue page of the developer guide states the following (Stated):

A queue counts as one registered consumer on its stream, and it shares the stream's registered consumer limit with enhanced fan-out consumers: 20 registered consumers on On-demand Standard and 50 on On-demand Advantage.

The enhanced fan-out consumer page also states that in a stream with queues, fewer slots are left for enhanced fan-out consumers (Stated).

The two kinds share one limit, so a stream with queues has correspondingly fewer registrations available for enhanced fan-out consumers.

For example, if an On-demand Standard stream has 5 queues, then 15 slots are available for enhanced fan-out consumers (Inference). You cannot say that a queue lets you read without using a consumer slot.

On-demand Advantage is not a per-stream setting. The terminology page of the developer guide states that it is an account setting that applies to all on-demand streams in a Region (Stated).

The enhanced fan-out consumer page states that only some Regions allow 50 enhanced fan-out consumers with On-demand Advantage (Stated). The queue page puts no Region condition on 50. Whether the 50 that includes queues can be used in Regions outside that list is not stated on the pages this article read (Not stated). Chapter 8 returns to this.

5.2 Can the Limit Be Raised?

Whether the limits for 20 and 50 can be increased is not stated on the queue quota page or on the quotas and limits page of the developer guide (Not stated). However, the CloudFormation page for AWS::Kinesis::StreamConsumer states that an increase can be requested for enhanced fan-out consumers (Stated).

You can register up to 20 consumers per stream. However, you can request a limit increase using the Kinesis Data Streams limits form.

This page mentions neither the On-demand Advantage limit of 50 nor queues (Not stated). Therefore, this article does not judge whether that sentence applies to the current limit, which includes queues. If you are designing with the expectation of being able to increase the limits, we recommend verifying this with the Service Quotas console or AWS Support before proceeding. This article did not look at the Service Quotas console.

5.3 Records Stay in the Stream

Records delivered by a queue stay in the stream; they are not moved to the queue (Stated).

The records a queue delivers stay in the stream.

An ack only changes the delivery state in the queue. The developer guide states that even after being acknowledged, records remain in the stream for the retention period, and that both stream consumers and other queues can still read them (Stated).

Acknowledging a record affects only its delivery state in the queue, not the record itself.

Conversely, the queue does not retain records for longer than the retention period. The CreateQueue API reference states the following (Stated).

A queue does not extend how long the stream keeps a record. When a record reaches the end of the data stream's retention period, the queue stops delivering it.

The developer guide's dead-letter page states that a queue has no retention period of its own (Stated). Unacknowledged records, including those designated as dead-letter records, are deleted once the stream's retention period expires. It is not accurate to say that "records remain until acknowledged." The retention period for the stream is between 24 hours and 8,760 hours (365 days) (Stated).

Even if you delete a queue, the stream and its records are not deleted (Stated). Records that were in flight when the queue was deleted are no longer delivered from that queue, and the ReceiptHandle values that queue issued stop being valid.

5.4 The In-Flight Limit and Other Quotas

The developer guide's queue quota page lists the following values (Stated):

ItemValue
Receive ThroughputVirtually unlimited
Number of Queues per Stream20 on On-demand Standard, 50 on On-demand Advantage (counted together with enhanced fan-out consumers)
Number of Streams per Queue1
Number of Queues in CREATING or DELETING State5 at a time per account per Region
Number of In-Flight Records per Queue120,000
Number of Visible Records Counted by MetricsUp to 1,000,000
Number of Records per Call10
Maximum Size of Records Delivered by a QueueMaximum size of a stream record. Up to 10 MiB

The in-flight limit counts records received but not yet acknowledged. A longer visibility timeout and later acks bring you closer to this limit (Inference). The developer guide recommends watching how close you are with the InFlightQueueRecords metric (Stated). VisibleQueueRecords counts only up to 1,000,000, and a queue can hold more visible records than that (Stated).

6. Dead-Letter Records

This chapter covers the dead-letter handling built into a queue.

6.1 Enabled by Default, and Can Be Disabled

The developer guide states that dead-letter handling is built into every queue (Stated). However, it is not always enabled. It is set with DeadLetterConfiguration in QueueAttributes, as follows (Stated):

  • TargetType can be either BUILT_IN or NONE. BUILT_IN enables the feature, while NONE disables it.
  • When BUILT_IN is selected, MaxReceiveCount must also be specified. The range for this value is from 1 to 1,000.
  • A queue created without a DeadLetterConfiguration uses BUILT_IN with a MaxReceiveCount of 6.

A record received MaxReceiveCount times without an ack becomes a dead-letter record, and ReceiveQueueRecords no longer returns it (Stated). With NONE, unacknowledged records keep being delivered until they are acknowledged or the retention period ends (Stated).

The developer guide recommends setting MaxReceiveCount high enough that a record reaching it is unlikely to be processable as it stands, and low enough that a failing record is set aside before it is delivered many times (Stated).

6.2 A State Within the Same Queue

The SQS dead-letter queue is itself another SQS queue. The dead-letter destination for a Kinesis Data Streams queue is not a separate resource. The API reference states that dead-letter records stay in the same queue and are handled with the same queue ARN (Stated).

The dead-letter record stays in the same queue, and you work with it through ReceiveDeadLetterQueueRecords, AcknowledgeDeadLetterQueueRecords, UpdateDeadLetterQueueRecordsVisibility, and RestoreDeadLetterQueueRecords, which use the same queue ARN.

Therefore, there is no separate queue, separate IAM resource, or separate retention period for dead-letter records (Inference). The dead-letter operations have IAM permissions separate from the normal operations (Stated). The Big Data Blog states that, as a result, an operator role can handle dead-letter records without changing the consumer's permissions (Announced).

6.3 Four APIs

Dead-letter records are handled through the following four operations. Each operation can process up to a maximum of 10 records at a time (Stated).

  • ReceiveDeadLetterQueueRecords: Retrieves dead-letter records. These records contain the same values and delivery information as regular records.
  • AcknowledgeDeadLetterQueueRecords: Acknowledges dead-letter records. The queue will no longer attempt to deliver these records. The API reference describes this as discarding the record.
  • UpdateDeadLetterQueueRecordsVisibility: Modifies the visibility timeout for in-flight dead-letter records.
  • RestoreDeadLetterQueueRecords: Returns dead-letter records to the normal receive path. This clears the dead-letter state and resets the receive count. Records that are restored will be delivered again, up to the MaxReceiveCount limit.

The developer guide recommends setting up a CloudWatch alarm for VisibleDeadLetterQueueRecords and restoring records only after fixing the cause (Stated). Acknowledge only the records that cannot be processed.

6.4 Figure 2: States a Record Goes Through in a Queue

Where a Record Goes in a Kinesis Data Streams Queue
Where a Record Goes in a Kinesis Data Streams Queue
Figure 2 illustrates the states a record goes through in a queue – four states defined in the developer guide: Visible, In flight, Acknowledged, and Dead-letter – along with the transitions between them. If a record remains unacknowledged and its visibility timeout expires, it returns to the Visible state. When it reaches MaxReceiveCount, it moves to Dead-letter, and when it is restored, it returns to Visible. Unacknowledged records, regardless of whether they are in the Visible, In flight, or Dead-letter state, are removed when the stream retention period expires. In the figure, these three states sit inside one dotted box, and the box title says so. The note at the bottom covers the case where TargetType is NONE.

6.5 Dead-Letter Records Also Expire with the Retention Period

Dead-letter records are also deleted when the stream's retention period ends (Stated). The developer guide recommends fixing the cause and then restoring or acknowledging the records before the retention period ends. Moving to dead-letter does not extend a record's lifetime (Inference).

7. APIs, Metrics, and IAM

This chapter lists the API, metrics, and IAM permissions for queues.

7.1 Table 2: The 12 Queue Operations

The following table lists the 12 queue operations available through the API reference. Control plane call limits are on the queue quota page of the developer guide (Stated). The values of the data plane call limits are not on the queue quota page (Not stated). When data plane calls are throttled, a ThrottlingException is returned (Stated).

OperationWhat It DoesLimit per CallOverall Call Limit
CreateQueueCreates a queue within a stream. Asynchronous—5 TPS
UpdateQueueModifies visibility timeout and dead-letter settings. Asynchronous—5 TPS
DeleteQueueDeletes a queue. The stream and records are not deleted. Asynchronous—5 TPS
DescribeQueueReturns the queue's status, stream, and configuration.—20 TPS
ListQueuesLists queues within an account and Region. Can be filtered to a single stream using StreamFilter.1 to 10,000 per page5 TPS
ReceiveQueueRecordsReceives visible records.10Not stated
AcknowledgeQueueRecordsAcknowledges records.10Not stated
UpdateQueueRecordsVisibilityModifies the visibility timeout for in-flight records.10Not stated
ReceiveDeadLetterQueueRecordsReceives dead-letter records.10Not stated
AcknowledgeDeadLetterQueueRecordsAcknowledges dead-letter records.10Not stated
UpdateDeadLetterQueueRecordsVisibilityModifies the visibility timeout for in-flight dead-letter records.10Not stated
RestoreDeadLetterQueueRecordsReturns dead-letter records to the normal receive path.10Not stated

When control plane calls exceed the limit, the result is a LimitExceededException (Stated). The developer guide says to retry both exceptions with exponential backoff (Stated). A queue can also be created with CloudFormation's AWS::Kinesis::Queue (Stated).

7.2 Table 3: The 11 Queue Metrics

Queue metrics are sent to CloudWatch every minute under the AWS/Kinesis namespace, with dimensions of QueueId and QueueName (Stated). There are five standard metrics and six dead-letter metrics.

MetricDescriptionStatistic
ReceivedQueueRecordsNumber of records received by the queue consumerSum
AcknowledgedQueueRecordsNumber of acknowledged recordsSum
EmptyReceivesNumber of receive calls that returned no recordsSum
VisibleQueueRecordsApproximate number of visible records, up to 1,000,000Average
InFlightQueueRecordsApproximate number of in-flight recordsAverage
ReceivedDeadLetterQueueRecordsNumber of dead-letter records receivedSum
AcknowledgedDeadLetterQueueRecordsNumber of acknowledged dead-letter recordsSum
EmptyDeadLetterReceivesNumber of dead-letter receive calls that returned no recordsSum
VisibleDeadLetterQueueRecordsApproximate number of visible dead-letter records, up to 1,000,000Average
RestoredDeadLetterQueueRecordsNumber of dead-letter records restored to the normal receive path. This metric is only sent after at least one record has been restored.Sum
InFlightDeadLetterQueueRecordsApproximate number of in-flight dead-letter recordsAverage

The developer guide states that it may take up to 3 minutes for the first metrics to appear after a queue is created (Stated). Kinesis Data Streams stops sending metrics for a queue that has had no visible records for about 6 hours, and sends them again as soon as a consumer instance receives from the queue (Stated). It is better not to treat missing metrics as a sign that the queue has stopped (Inference).

7.3 IAM Permissions and Condition Keys

Operations on queues are permitted through IAM actions with the kinesis: prefix (Stated). The IAM page of the developer guide lists 19 actions. Twelve of these correspond to queue operations, three relate to tags (kinesis:TagResource, kinesis:UntagResource, kinesis:ListTagsForResource), three are for resource-based policies (kinesis:PutResourcePolicy, kinesis:GetResourcePolicy, kinesis:DeleteResourcePolicy), and one is kinesis:AssociateStreamsWithQueue.

Two permissions are required to create a queue (Stated).

  • The kinesis:AssociateStreamsWithQueue permission for a stream's ARN.
  • The kinesis:CreateQueue permission for arn:aws:kinesis:region:account-id:queue/*.

There is no corresponding API operation for kinesis:AssociateStreamsWithQueue. The Service Authorization Reference classifies it as a permission-only action whose resource type is the stream (Stated). Therefore, it is possible to restrict, on the stream's side, which principals are allowed to create a queue (Inference). The reason kinesis:CreateQueue is permitted for queue/* rather than for individual queues is that the resource ID of the queue does not yet exist before it is created (Stated).

The ARN of a queue does not represent the queue's name; instead, it holds the resource ID created by Kinesis Data Streams (Stated). Therefore, it is not possible to specify a queue by name in an IAM policy.

In the Service Authorization Reference, the condition keys for queue actions are only the three tag keys: aws:RequestTag/${TagKey}, aws:ResourceTag/${TagKey}, and aws:TagKeys (Stated). CreateQueue, and TagResource on a queue, support all three. UntagResource supports aws:ResourceTag/${TagKey} and aws:TagKeys. The other actions that take a queue as a resource support aws:ResourceTag/${TagKey}. ListQueues has neither a resource type nor any condition keys. The three condition keys specific to Kinesis Data Streams belong only to the AWS FIS action (kinesis:InjectApiError) and are not attached to queue actions (Stated).

If a stream uses server-side encryption, queue consumers calling ReceiveQueueRecords and ReceiveDeadLetterQueueRecords must also have the kms:Decrypt permission for the stream's KMS key (Stated). CreateQueue does not require any KMS permissions (Stated).

7.4 Queue Consumers in Another Account

When you attach a resource-based policy to a queue, you can grant principals in another account the ability to read the queue (Stated). The policy can only permit the following eight actions; policies including other actions will be rejected (Stated).

  • kinesis:ReceiveQueueRecords, kinesis:AcknowledgeQueueRecords, kinesis:UpdateQueueRecordsVisibility
  • kinesis:ReceiveDeadLetterQueueRecords, kinesis:AcknowledgeDeadLetterQueueRecords, kinesis:UpdateDeadLetterQueueRecordsVisibility, kinesis:RestoreDeadLetterQueueRecords
  • kinesis:DescribeQueue

Creating, changing, deleting, listing, tagging, and managing policies stay with the account that owns the queue (Stated). A queue is always in the same account as its stream. A resource-based policy on a stream does not apply to the stream's queues (Stated). To grant principals in another account the same actions, you must also permit them through an identity-based policy. If the stream is encrypted, you must also permit the kms:Decrypt action in both key policies and identity-based policies (Stated).

8. Where Pages Describe Things Differently

This chapter lists the places where pages describe the same thing in different ways. It does not side with either page; it lists the page and the checked date. All checked dates are 2026-12-05.

TopicPage APage BTreatment of this Article
Relationship with SQSWhat's New, Big Data Blog, and FAQ state: "Queues in Kinesis Data Streams are powered by Amazon SQS."The developer guide and API reference pages reviewed for this article do not mention SQS.Announced. The FAQ continues, stating that queues are a feature of Kinesis Data Streams that have their own operations. Treat it as a separate Kinesis API, with its own semantics, on an SQS foundation.
OrderingThe API reference and developer guide state "not necessarily."The Big Data Blog states "best effort."Read it as the weaker promise. Do not write that records arrive in the order they were written.
Regions for 50The queue page puts no Region condition on 50.The enhanced fan-out consumer page states that 50 enhanced fan-out consumers are available only in some Regions.Whether the 50 that includes queues can be used in Regions outside the list is Not stated.
Limit IncreasesThe queue quota page and the developer guide's quotas and limits page do not mention increases.The CloudFormation AWS::Kinesis::StreamConsumer page states that you can request an increase from 20.Whether it applies to the current limit, which includes queues, is Not stated.
Number of TagsThe CreateQueue Tags description states a maximum of 50 tag pairs.The same page's Map Entries section states a maximum of 200 items.A difference within the same page. Design for 50 (Inference).
Lambda ESMThe Kinesis Data Streams page does not mention Lambda.The Lambda Kinesis ESM page lists the targets as standard iterators and enhanced fan-out consumers.Whether an ESM can read a queue is Not stated.

The FAQ sentence in the first row reads as follows (Announced):

Queues in Kinesis Data Streams are powered by Amazon SQS, but they are a capability of Kinesis Data Streams with their own operations and pricing.

The FAQ continues that if you need SQS features such as FIFO queues, message delays, and the SQS APIs, you should use SQS (Announced). The queue APIs are not SQS APIs. Furthermore, the order and storage locations differ from those of SQS standard queues (see Table 1).

9. What to Check Before Adding a Queue

The following table lists what to check before adding a queue.

Verification PointVerification MethodSection
Is the stream on-demand?Check the stream's capacity mode. If it is provisioned, you cannot create a queue.Section 4.3
Does the processing depend on previous records?Verify if a single record can be processed independently. If it depends on previous records, read the stream directly.Section 4.1
Is the consumer idempotent?Determine whether it is safe to receive the same record more than once. Evaluate based on a business-specific ID, including potential duplicates from the producer's retries.Section 4.2
Are there remaining slots for registered consumers?Add the number of enhanced fan-out consumers from ListStreamConsumers to the number of queues from ListQueues with StreamFilter, and subtract the total from 20 or 50.Section 5.1
Are you assuming the limit of 50?Check whether On-demand Advantage is enabled in that Region and whether 50 is available in that Region.Section 5.1, Chapter 8
Are you assuming a limit increase?Verify using the Service Quotas console or AWS Support.Section 5.2
Is the visibility timeout longer than the processing time?Compare with typical processing times. For records that take longer, extend the visibility timeout using UpdateQueueRecordsVisibility.Section 3.2
Does the number of in-flight records reach 120,000?Check InFlightQueueRecords.Section 5.4
Can you clear dead-letter records within the retention period?Compare the stream's retention period with the time it takes to fix the cause and restore the records.Section 5.3, Section 6.5
Is there an alarm for dead-letter records?Place a CloudWatch alarm on VisibleDeadLetterQueueRecords.Section 6.3
Do you also have the stream-side permission to create a queue?For the stream's ARN, check for kinesis:AssociateStreamsWithQueue; for queue/*, check for kinesis:CreateQueue.Section 7.3
Is the stream encrypted?Grant the queue consumer permission for kms:Decrypt.Section 7.3
Can queues be created in that Region?Refer to the Region table in the developer guide's queue chapter. As of the checked date, 33 Regions were listed.Section 1.3
Are you assuming that Lambda reads the queue?Verify using the Lambda developer guide's Kinesis ESM page.Section 4.4

10. Frequently Asked Questions About Kinesis Data Streams Queues

Q1. Does using a queue guarantee that records are delivered in the order they were written?

Not necessarily. The API reference and developer guide state that a queue consumer does not always receive records in the order the producer wrote them. The Big Data Blog refers to ordering as "best effort." If a record's processing depends on the previous record, the developer guide recommends reading the stream directly.

Q2. Once a record is acknowledged (acked), will it ever be delivered again?

Occasionally, yes. Both the developer guide and the API reference state this possibility. Records whose visibility timeout expires before the ack are also delivered again. Consumers should be built to be idempotent. Duplicate records resulting from producer retries will have different RecordId values, so business-specific IDs should be used for identification.

Q3. Does acknowledging (acking) a record remove it from the stream?

No. Acknowledging (acking) only changes the delivery status in the queue; the record remains in the stream for its retention period. Both stream consumers and other queues can read the same record.

Q4. If a record is not acknowledged (acked), will it remain in the system indefinitely?

No. Queues do not have their own retention period. Unacknowledged records, including dead-letter records, will be deleted when the stream's retention period expires.

Q5. Does a queue let you avoid using the enhanced fan-out consumer limit?

No. A queue is counted as one of the registered consumers and shares the same limit as enhanced fan-out consumers. The limit is 20 for On-demand Standard and 50 for On-demand Advantage.

Q6. Can I use a queue with a provisioned stream?

No. The developer guide states that queues are only supported with On-demand Standard and On-demand Advantage streams. To convert a queue-enabled stream to a provisioned stream, you must first delete all queues.

Q7. Do I need to create a separate queue specifically for dead-letter records?

No. Dead-letter records are handled in the same queue, using four operations that share the same queue ARN. Dead-letter handling is enabled by default, and MaxReceiveCount defaults to 6. You can disable it by setting TargetType to NONE.

Q8. Can a Lambda event source mapping read a queue?

The Lambda pages this article read do not mention this. Lambda's Kinesis ESM documentation refers to targets as standard iterators and enhanced fan-out consumers. This does not mean that an ESM cannot read a queue. Check the Lambda developer guide before you rely on an ESM to read one.

11. Summary

  • A queue is a consumption pattern that receives records without leasing shards. It does not require DynamoDB tables, shard leases, or a KCL, and consumer instances can be added regardless of the number of shards.
  • A queue takes on receiving (up to 10 records at a time), visibility timeout (default 30 seconds, from 0 to 43,200 seconds), acknowledgments (ack), redelivery, and dead-letter handling. The receive wait time defaults to 9 seconds and ranges from 1 to 20 seconds.
  • A queue does not guarantee delivery order; occasionally, it may redeliver records that have already been acknowledged. The API reference and developer guide say so, and the blog calls ordering "best effort."
  • Queues are only available with On-demand Standard and On-demand Advantage streams. They cannot be used with provisioned streams, and you must delete the queues before switching.
  • A queue is counted as one of the registered consumers and shares a limit of 20 or 50 with enhanced fan-out consumers. Whether you can raise the limit is not stated on the queue and quota pages.
  • Records remain in the stream. An ack only changes the state in the queue; unacknowledged records are deleted based on the stream's retention period. The number of in-flight records is limited to 120,000 per queue.
  • Dead-letter handling is enabled by default and is a state in the same queue. MaxReceiveCount defaults to 6 and ranges from 1 to 1,000, and dead-letter handling can be disabled by setting TargetType to NONE. Four operations receive, acknowledge, change the visibility timeout of, and restore dead-letter records.
  • To create a queue, you also need the kinesis:AssociateStreamsWithQueue permission for the stream's ARN. The condition keys for queue actions are only the three tag keys.
  • The phrase "powered by Amazon SQS" appears in What's New, the Big Data Blog post, and the FAQ, but the queue's API and semantics are separate from SQS. Whether a Lambda ESM can read a queue is not stated on the Lambda pages this article read.
  • This article is based on documentation read on December 5, 2026, shortly after re:Invent 2026. The documentation may change.

12. References



References:
Tech Blog with curated related content

Written by Hidekazu Konishi