Amazon Kinesis Data Streams Quotas and Limits
Stream and Shard Quotas
Amazon Kinesis Data Streams has the following stream and shard quotas and limits: * **Number of streams per AWS account:** 500 * **Number of shards per stream:** 1,000 * **Maximum size of a shard:** 5 GB
API Rate Limits
Like most AWS APIs, Kinesis Data Streams API operations are rate-limited. The following table shows the default rate limits for each operation: | Operation | Default Rate Limit | |---|---| | CreateStream | 5 per second | | DeleteStream | 5 per second | | DescribeStream | 20 per second | | GetRecords | 5 per second | | PutRecord | 1,000 per second |
Capacity Limits
The capacity of a Kinesis data stream is measured in **Kinesis processing units (KPUs)**. Each KPU represents the capacity to process approximately 1 MB of data per second. The maximum number of KPUs that can be provisioned for a single stream is 8. If the capacity limits of a Kinesis data stream are exceeded, the stream will enter a **backpressure** state. In backpressure, new data will not be accepted until the stream has enough capacity to process it.
Provisioned Mode
In provisioned mode, the capacity of a Kinesis data stream is fixed and is not automatically adjusted based on the volume of data being processed. If the capacity limits of a provisioned stream are exceeded, the stream will enter backpressure.
On-Demand Mode
In on-demand mode, the capacity of a Kinesis data stream is automatically adjusted based on the volume of data being processed. This means that streams in on-demand mode will never enter backpressure.
Changing Capacity Mode
You can change the capacity mode of a Kinesis data stream at any time. However, you cannot change the capacity mode of a stream that is in backpressure.
Requesting a Limit Increase
If you need to increase the limits for your Kinesis data streams, you can request a limit increase in [Amazon Service Limits](https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html).
Komentar