Service · Analytics · SAA-C03 အပေါ် ဆက်လေ့လာရန်
Amazon Kinesis Data Streams
Real-time streams sized in shards: limits, fan-out, and fixing throttling and lag.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Solutions Architect Associate မှ သင်သိပြီးသားများ
- A shard takes 1 MB/s or 1,000 records/s in, and gives 2 MB/s out.
- Provisioned mode sets the shards. On-demand mode scales them.
- The partition key decides the shard and the order. A skewed key makes a hot shard.
Write throttled
- Likely cause
- Too much for one shard
- Fix
- More shards, better key, retry with backoff
Iterator age rises
- Likely cause
- Consumers too slow
- Fix
- More consumers or shards, fan-out
Read throttled
- Likely cause
- Consumers share 2 MB/s
- Fix
- Enhanced fan-out, fewer polls
One shard hot
- Likely cause
- Skewed partition key
- Fix
- Key with many values, split shard
| Symptom | Likely cause | Fix |
|---|---|---|
| Write throttled | Too much for one shard | More shards, better key, retry with backoff |
| Iterator age rises | Consumers too slow | More consumers or shards, fan-out |
| Read throttled | Consumers share 2 MB/s | Enhanced fan-out, fewer polls |
| One shard hot | Skewed partition key | Key with many values, split shard |
1 / 2
Write throttled
- Likely cause
- Too much for one shard
- Fix
- More shards, better key, retry with backoff
Iterator age rises
- Likely cause
- Consumers too slow
- Fix
- More consumers or shards, fan-out
Read throttled
- Likely cause
- Consumers share 2 MB/s
- Fix
- Enhanced fan-out, fewer polls
| Symptom | Likely cause | Fix |
|---|---|---|
| Write throttled | Too much for one shard | More shards, better key, retry with backoff |
| Iterator age rises | Consumers too slow | More consumers or shards, fan-out |
| Read throttled | Consumers share 2 MB/s | Enhanced fan-out, fewer polls |
2 / 2
One shard hot
- Likely cause
- Skewed partition key
- Fix
- Key with many values, split shard
| Symptom | Likely cause | Fix |
|---|---|---|
| One shard hot | Skewed partition key | Key with many values, split shard |
ဘာလဲ
In provisioned mode you choose the shard count and can split or merge shards. In on-demand mode a new stream starts at 4 MB/s write and 8 MB/s read, and scales up with traffic to a Region-dependent maximum. A stream can switch between the modes twice in 24 hours. A record can be up to 10 MiB, but each stream starts with a 1 MiB limit. You raise the limit in the stream settings. Large records should be rare, not constant. Retention runs from 24 hours to 365 days, and consumers can replay inside that window.
ဘာလဲ
Producers use the Kinesis Producer Library (KPL) to batch and aggregate records and to retry. Consumers use the Kinesis Client Library (KCL), which spreads shards over workers, keeps leases in a DynamoDB table and tracks checkpoints. All shared-throughput consumers split 2 MB/s per shard. Enhanced fan-out gives each registered consumer its own 2 MB/s per shard, A stream allows 20 such consumers. On-demand Advantage mode allows 50.
ဘာလဲ
Two errors matter. A producer that sends too much to one shard gets WriteProvisionedThroughputExceeded. A consumer that reads too often gets ReadProvisionedThroughputExceeded: GetRecords allows five calls per second per shard. The metric to watch is iterator age: when it climbs, consumers fall behind. Add shards, add or speed up consumers, use enhanced fan-out, or raise the parallelization factor of a Lambda consumer.
မှတ်ထားရန်
- Per shard: 1 MB/s or 1,000 records/s in, 2 MB/s out, five GetRecords calls per second.
- On-demand starts at 4 MB/s write. Switch modes at most twice in 24 hours.
- Retention 24 hours to 365 days. Record: 1 MiB by default, can be raised to 10 MiB.
- KPL batches on the producer side. KCL shares shards among workers with a DynamoDB lease table.
မှတ်ထားရန်
- Enhanced fan-out: 2 MB/s per consumer per shard, 20 consumers (50 in On-demand Advantage).
- Rising iterator age means consumers are behind.
စာမေးပွဲမှာ
- “WriteProvisionedThroughputExceeded on a few records” points to a hot shard: use a key with more values or add shards.
- “Iterator age keeps growing” points to slow consumers: add shards or consumers, or use enhanced fan-out.
- “Several applications read one stream without slowing each other” points to enhanced fan-out.
ဒါတွေနဲ့ မရောပါနဲ့
ဒီ task ထဲမှာ · 1.1
- S3 as the ML data lake
- Choosing storage: S3, EFS, EBS, FSx and transfer tools
- Extracting data from databases and search
- Data formats: Parquet, ORC, Avro, CSV, JSON, RecordIO
Kinesis Data Streams
Firehose
Managed Flink
MSK
- Troubleshooting ingestion and storage capacity
Catalog and Lake Formation
- Merging data from multiple sources
- Choosing and configuring a vector store
OpenSearch
- Aurora and RDS PostgreSQL with pgvector
- Ingesting text, image, audio and video
- Ingesting data into SageMaker Feature Store