ladderlore
လမ်းညွှန် တောင်းဆိုရန်
  • S3 သို့မဟုတ် IAM လို service အမည်ကို ရိုက်ထည့်ပါ။

Service · Analytics · CLF-C02 အပေါ် ဆက်လေ့လာရန်

Amazon Kinesis

Real-time streams that you size in shards. Partition keys decide order and balance.

ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။

Cloud Practitioner မှ သင်သိပြီးသားများ

  • Kinesis Data Streams captures a stream for your own applications to process.
  • Firehose delivers streams to S3, Redshift or OpenSearch with no code.
  • Kinesis Video Streams carries live video.
Cloud Practitioner သင်ခန်းစာကို ဖတ်ရန်
  • Write per shard

    1 MB/s or 1,000 records/s
  • Read per shard

    2 MB/s, shared by consumers
  • Enhanced fan-out

    2 MB/s per consumer per shard
  • Retention

    24 hours up to 365 days
  • Capacity mode

    Provisioned shards or on-demand
Numbers for sizing a stream.
Producers
Shard 1
Shard 2
Shard 3
Consumers
key Akey Bkey C
The partition key picks the shard. Many different keys spread the load.

ဘာလဲ

A data stream is a set of shards. Each shard accepts up to 1 MB per second or 1,000 records per second of writes, and serves up to 2 MB per second of reads. A stream with five shards takes up to 5 MB per second. In provisioned mode you choose the number of shards. In on-demand mode Kinesis adds and removes shards for you. Producers can use the Kinesis Producer Library (KPL) to batch and send records. Consumers can use the Kinesis Client Library (KCL), which shares a stream’s shards among several workers.

ဘာလဲ

Every record has a partition key. Records with the same key go to the same shard, in order. If most records share a few keys, one shard becomes hot and producers get throttled while other shards sit idle. Use a key with many different values. By default all consumers share a shard’s 2 MB per second. Enhanced fan-out gives each registered consumer its own 2 MB per second per shard. Data stays in the stream for 24 hours by default, and up to 365 days, so consumers can replay it.

မှတ်ထားရန်

  • Per shard: 1 MB/s or 1,000 records/s in, 2 MB/s out.
  • Provisioned (you set shards) or on-demand (automatic).
  • Retention 24 hours to 365 days. Consumers can replay.
  • Same partition key goes to the same shard, in order. A skewed key makes a hot shard.
  • Enhanced fan-out: a dedicated 2 MB/s per consumer per shard.

မှတ်ထားရန်

  • Kinesis Video Streams ingests video from cameras and devices for analysis.

စာမေးပွဲမှာ

  • “ProvisionedThroughputExceeded errors” points to more shards, or a better partition key.
  • “Several applications read the same stream without slowing each other” points to enhanced fan-out.
  • “Replay the last week of events” points to Kinesis Data Streams with longer retention.
  • “Ordered processing per customer” points to the customer ID as partition key.