3. Streaming (quick summary)

28 cards

Review this deck
All cards in this deck

Shard

1MB/s or 1000 rec/s WRITE; 2MB/s READ (shared)

Enhanced fan-out

2MB/s per consumer per shard (push HTTP/2)

Kinesis Data Streams (KDS): Retention 24h default → 365 days; REPLAY supported

3. Streaming (quick summary)

Kinesis Data Streams (KDS): Partition key → shard; same key = ordering preserved

3. Streaming (quick summary)

Kinesis Data Streams (KDS): Hot shard = skewed key → salt/high cardinality

3. Streaming (quick summary)

Kinesis Data Streams (KDS): High IteratorAgeMilliseconds = consumer falling behind

3. Streaming (quick summary)

On-demand

spiky traffic; Provisioned: steady → cheaper

KPL aggregation

packs small records (adds latency, needs KCL deaggregate)

Delivery service

NO storage, NO replay

Amazon Data Firehose: Buffer by size (MB) or time (0-900s) — zero buffering supported

3. Streaming (quick summary)

Destinations

S3, Redshift (via S3+COPY), OpenSearch, Snowflake, Iceberg, HTTP

Amazon Data Firehose: Lambda transform + format conversion JSON→Parquet (Glue Catalog schema)

3. Streaming (quick summary)

Amazon Data Firehose: Dynamic partitioning by record values

3. Streaming (quick summary)

Amazon Data Firehose: Errors → S3 error/backup prefix (no data loss)

3. Streaming (quick summary)

Real Kafka

client code unchanged ("minimal changes")

MSK: Ordering per partition (key → partition)

3. Streaming (quick summary)

MSK Serverless

IAM auth only, no cluster sizing

MSK Connect

Debezium CDC, managed sink connectors

MSK: Exactly-once producer transactions (Kafka) — KDS does not have this

3. Streaming (quick summary)

Managed Service for Apache Flink: Stateful stream processing, checkpoint → exactly-once processing

3. Streaming (quick summary)

Windows

TUMBLING (no overlap) | SLIDING (overlap, "last N updated every M")

Managed Service for Apache Flink: KPU-hour, runs continuously; Studio notebook (Zeppelin) for interactive SQL

3. Streaming (quick summary)

Use cases

window aggregation, sessionization, anomaly, stream join

Quick pick: Only deliver to a destination → Firehose

3. Streaming (quick summary)

Quick pick: Many consumers / replay / custom real-time → KDS

3. Streaming (quick summary)

Quick pick: Existing Kafka / ecosystem → MSK

3. Streaming (quick summary)

Quick pick: Queue, 1 message 1 consumer → SQS

3. Streaming (quick summary)

Quick pick: Fan-out notification / event routing → SNS / EventBridge

3. Streaming (quick summary)

3. Streaming (quick summary) – Flashcards – DEA-C01 | Học Dev