DVA-C02

Introduction to Amazon Kinesis

Real-time streaming data collection and processing.

  • 2 lessons
  • Module quiz

Some data arrives continuously rather than in occasional requests: clickstreams from a website, readings from devices, application logs and financial transactions. Such streaming data is most valuable when it is processed as it arrives, and it often needs to be read by several applications, in order, and sometimes read again.

Amazon Kinesis is a family of services for streaming data, and two of them matter for developers. Kinesis Data Streams stores an ordered stream of records, divided into shards, for 24 hours by default and up to 365 days; the developer's own consumers read it in real time and can replay it. In provisioned mode, each shard accepts up to 1 MB or 1,000 records per second and serves 2 MB per second to readers; on-demand mode scales automatically. Amazon Data Firehose loads streaming data into destinations such as Amazon S3, Amazon Redshift and Amazon OpenSearch Service with no consumer code, buffering it so that delivery is near real time.

Where Kinesis fits

The exam frequently asks which of the two to use. Data Streams suits custom real-time processing, several independent consumers and replay; Firehose suits delivering data to storage or analytics with the least management. Questions on Data Streams often involve choosing partition keys and diagnosing ProvisionedThroughputExceededException errors, which occur when too much data goes to one shard.

How this module is organised

Ingesting Real-Time Data with Kinesis Data Streams explains shards, partition keys, producers and consumers, and how to scale and troubleshoot a stream. Delivering Streaming Data to Storage with Amazon Data Firehose explains destinations, transformation, buffering and reliability, and compares Firehose with Data Streams.

  1. Ingesting Real-Time Data with Kinesis Data Streams Lesson 1
  2. Delivering Streaming Data to Storage with Amazon Data Firehose Lesson 2
  3. Practise and review
  4. Test your knowledge 6 questions