Amazon Kinesis Data Analytics is a legacy capability. We recommend that you use Amazon Managed Service for Apache Flink Studio or Amazon Managed Service for Apache Flink. Amazon Managed Service for Apache Flink Studio combines ease of use with advanced analytical capabilities, enabling you to build stream processing applications in minutes. You can find code and architecture examples to help you move your Kinesis Data Analytics for SQL workloads to Amazon Managed Service for Apache Flink Studio in the Resources section.
With Amazon Kinesis Data Analytics for SQL, you pay only for what you use. There are no resources to provision and no upfront costs. You are charged an hourly rate based on the number of Kinesis Processing Units (or KPUs) used to run your applications. A single KPU comprises 1 vCPU compute and 4 GB of memory.
General guidance on KPU usage
We recommend that you test your application with production loads to get an accurate estimate of the number of KPUs required for your application. KPU usage can vary considerably based on your data volume and velocity, code complexity, integrations, and more. This is especially true when using Apache Flink runtime in Amazon Kinesis Data Analytics. For example, through internal testing we have observed throughput of hundreds of MB per second per KPU for simple applications with no state, and throughput of less than 1 MB per second per KPU for complex applications that use intensive machine learning (ML) algorithms. With these caveats in mind, the general guidance we provide prior to testing your application is 1 MB per second per KPU.
China (Ningxia) region:
|Kinesis Processing Unit, Per Hour||¥ 0.777 per hour|
China (Beijing) region:
|Kinesis Processing Unit, Per Hour||¥ 1.161 per hour|
A customer uses a SQL application in Amazon Kinesis Data Analytics to compute a 1-minute, sliding-window sum of items sold in online shopping transactions captured in their Kinesis stream. This stream normally ingests data at 1,000 records/second, but the data spikes once a day during promotional campaigns to 6,000 records/second inside an hour. The monthly Amazon Kinesis Data Analytics charges will be computed as follows:
The price in China (Ningxia) Region is ¥0.777 per KPU-Hour used for their stream processing application. The incoming Kinesis data stream transmits data at 1,000 records/second. However once a day, inside an hour, the stream spikes to 6,000 records/second.
For ‘steady state’ which occurs 23 of 24 hours in the day, the sliding-window query uses 1 KPU to process the workload during these hours.
30 Days/Month * 23 Hours/Day = 690 Hours/Month
Steady State = 690 Hours/Month * (1 KPU * ¥0.777 /Hour) = ¥536.13
For ‘spiked state’ which occurs for 1 of 24 hours in the day, the sliding-window query uses between 1 and 2 KPUs. The customer will be billed for 2 KPUs for that 1 hour out of the 24 hours in the day.
30 Days/Month * 1 Hour/Day = 30 Hours/Month
Spiked State = 30 Hours/Month * (2 KPUs * ¥0.777/Hour) = ¥46.62
Note: We reserve the right to charge standard data transfer costs for data transferred in and out of Amazon Kinesis Data Analytics applications.