Skill 1.1.6

Manage streaming data by using AWS services.

Key Concepts

Kinesis Data Streams stores records in shards, ordered by partition key, for 24 hours up to 365 days, and lets several consumers read and replay the same data. Producers use PutRecord or PutRecords; consumers use the Kinesis Client Library or a Lambda event source mapping, which reads batches per shard and checkpoints progress for you.

Amazon Data Firehose is the simpler option when the goal is to load streaming data into S3, Redshift or OpenSearch with optional Lambda transformation, because it needs no consumer code. DynamoDB Streams provides a change stream from a table, and Amazon MSK provides managed Apache Kafka for teams already using Kafka.

Typical patterns include processing files as soon as they land in S3 (resizing images or parsing CSVs), reading Kinesis or DynamoDB Streams records in batches to update aggregates or other systems, and transforming records inside Amazon Data Firehose before delivery. For streams, the batch size and batching window balance latency against cost, and the parallelization factor lets several batches from one shard be processed at once.

Event source mappings support filtering, so only matching records invoke the function, and tumbling windows let a function aggregate data over fixed time periods. Functions that write back to the same S3 bucket or queue that triggers them must avoid infinite loops, for example by using a different bucket or prefix; Lambda's recursive loop detection stops some loops automatically.