In the present day, AWS introduced that Amazon Kinesis Information Streams now helps file sizes as much as 10MiB – a tenfold enhance from the earlier restrict. With this launch, now you can publish intermittent bigger information payloads in your information streams whereas persevering with to make use of current Kinesis Information Streams APIs in your purposes with out extra effort. This launch is accompanied by a 2x enhance within the most PutRecords request measurement from 5MiB to 10MiB, simplifying information pipelines and lowering operational overhead for IoT analytics, change information seize, and generative AI workloads.
On this put up, we discover Amazon Kinesis Information Streams massive file assist, together with key use circumstances, configuration of most file sizes, throttling concerns, and greatest practices for optimum efficiency.
Actual world use circumstances
As information volumes develop and use circumstances evolve, we’ve seen growing demand for supporting bigger file sizes in streaming workloads. Beforehand, whenever you wanted to course of data bigger than 1MiB, you had two choices:
- Break up massive data into a number of smaller data in producer purposes and reassemble them in client purposes
- Retailer massive data in Amazon Easy Storage Service (Amazon S3) and ship solely metadata by Kinesis Information Streams
Each these approaches are helpful, however they add complexity to information pipelines, requiring extra code, growing operational overhead, and complicating error dealing with and debugging, notably when prospects must stream massive data intermittently.
This enhancement improves the benefit of use and reduces operational overhead for patrons dealing with intermittent information payloads throughout numerous industries and use circumstances. Within the IoT analytics area, linked autos and industrial tools are producing growing volumes of sensor telemetry information, with the dimensions of particular person telemetry data often exceeding the earlier 1MiB restrict in Kinesis. This required prospects to implement complicated workarounds, corresponding to splitting massive data into a number of smaller ones or storing the massive data individually and solely sending metadata by Kinesis. Equally, in database change information seize (CDC) pipelines, massive transaction data could be produced, particularly throughout bulk operations or schema modifications. Within the machine studying and generative AI house, workflows are more and more requiring the ingestion of bigger payloads to assist richer function units and multi-modal information varieties like audio and pictures. The elevated Kinesis file measurement restrict from 1MiB to 10MiB limits the necessity for a majority of these complicated workarounds, simplifying information pipelines and lowering operational overhead for patrons in IoT, CDC, and superior analytics use circumstances. Prospects can now extra simply ingest and course of these intermittent massive information data utilizing the identical acquainted Kinesis APIs.
The way it works
To start out processing bigger data:
- Replace your stream’s most file measurement restrict (
maxRecordSize) by the AWS Console, AWS CLI, or AWS SDKs. - Proceed utilizing the identical
PutRecordandPutRecordsAPIs for producers. - Proceed utilizing the identical
GetRecordsorSubscribeToShardAPIs for shoppers.
Your stream will probably be in Updating standing for just a few seconds earlier than being able to ingest bigger data.
Getting began
To start out processing bigger data with Kinesis Information Streams, you possibly can replace the utmost file measurement through the use of the AWS Administration Console, CLI or SDK.
On the AWS Administration Console,
- Navigate to the Kinesis Information Streams console.
- Select your stream and choose the Configuration tab.
- Select Edit (subsequent to Most file measurement).
- Set your required most file measurement (as much as 10MiB).
- Save your modifications.
Be aware: This setting solely adjusts the utmost file measurement for this Kinesis information stream. Earlier than growing this restrict, confirm that each one downstream purposes can deal with bigger data.
Most typical shoppers corresponding to Kinesis Shopper Library (beginning with model 2.x), Amazon Information Firehose supply to Amazon S3 and AWS Lambda assist processing data bigger than 1 MiB. To study extra, consult with the Amazon Kinesis Information Streams documentation for big data.
You can even replace this setting utilizing the AWS CLI:
Or utilizing the AWS SDK:
Throttling and greatest practices for optimum efficiency
Particular person shard throughput limits of 1MiB/s for writes and 2MiB/s for reads stay unchanged with assist for bigger file sizes. To work with massive data, let’s perceive how throttling works. In a stream, every shard has a throughput capability of 1 MiB per second. To accommodate massive data, every shard briefly bursts as much as 10MiB/s, finally averaging out to 1MiB per second. To assist visualize this conduct, consider every shard having a capability tank that refills at 1MiB per second. After sending a big file (for instance, a 10MiB file), the tank begins refilling instantly, permitting you to ship smaller data as capability turns into out there. This capability to assist massive data is repeatedly refilled into the stream. The speed of refilling will depend on the dimensions of the massive data, the dimensions of the baseline file, the general site visitors sample, and your chosen partition key technique. Once you course of massive data, every shard continues to course of baseline site visitors whereas leveraging its burst capability to deal with these bigger payloads.
As an instance how Kinesis Information Streams handles completely different proportions of huge data, let’s look at the outcomes a easy check. For our check configuration, we arrange a producer that sends information to an on-demand stream (defaults to 4 shards) at a charge of fifty data per second. The baseline data are 10KiB in measurement, whereas massive data are 2MiB every. We carried out a number of check circumstances by progressively growing the proportion of huge data from 1% to five% of the full stream site visitors, together with a baseline case containing no massive data. To make sure constant testing circumstances, we distributed the massive data uniformly over time for instance, within the 1% state of affairs, we despatched one massive file for each 100 baseline data. The next graph exhibits the outcomes:

Within the graph, horizontal annotations point out throttling prevalence peaks. The baseline state of affairs, represented by the blue line, exhibits minimal throttling occasions. Because the proportion of huge data will increase from 1% to five%, we observe a rise within the charge at which your stream throttles your information, with a notable acceleration in throttling occasions between the two% and 5% situations. This check demonstrates how Kinesis Information Streams manages growing proportion of huge data.
We suggest sustaining massive data at 1-2% of your complete file depend for optimum efficiency. In manufacturing environments, precise stream conduct varies primarily based on three key components: the dimensions of baseline data, the dimensions of huge data, and the frequency at which massive data seem within the stream. We suggest that you simply check along with your demand sample to find out the precise conduct.
With on-demand streams, when the incoming site visitors exceeds 500 KB/s per shard, it splits the shard inside quarter-hour. The mum or dad shard’s hash key values are redistributed evenly throughout youngster shards. Kinesis mechanically scales the stream to extend the variety of shards, enabling distribution of huge data throughout a bigger variety of shards relying on the partition key technique employed.
For optimum efficiency with massive data:
- Use a random partition key technique to distribute massive data evenly throughout shards.
- Implement backoff and retry logic in producer purposes.
- Monitor shard-level metrics to determine potential bottlenecks.
In the event you nonetheless must repeatedly stream of huge data, think about using Amazon S3 to retailer payloads and ship solely metadata references to the stream. Confer with Processing massive data with Amazon Kinesis Information Streams for extra data.
Conclusion
Amazon Kinesis Information Streams now helps file sizes as much as 10MiB, a tenfold enhance from the earlier 1MiB restrict. This enhancement simplifies information pipelines for IoT analytics, change information seize, and AI/ML workloads by eliminating the necessity for complicated workarounds. You’ll be able to proceed utilizing current Kinesis Information Streams APIs with out extra code modifications and profit from elevated flexibility in dealing with intermittent massive payloads.
- For optimum efficiency, we suggest sustaining massive data at 1-2% of complete file depend.
- For greatest outcomes with massive data, implement a uniformly distributed partition key technique to evenly distribute data throughout shards, embody backoff and retry logic in producer purposes, and monitor shard-level metrics to determine potential bottlenecks.
- Earlier than growing the utmost file measurement, confirm that each one downstream purposes and shoppers can deal with bigger data.
We’re excited to see the way you’ll leverage this functionality to construct extra highly effective and environment friendly streaming purposes. To study extra, go to the Amazon Kinesis Information Streams documentation.
