Service · Analytics · SAA-C03 အပေါ် ဆက်လေ့လာရန်
Amazon Data Firehose
Buffered delivery to S3, Redshift and OpenSearch: buffering, transforms, conversion, partitioning.
ဒီသင်ခန်းစာကို မြန်မာဘာသာ မပြန်ရသေးလို့ အင်္ဂလိပ်လို ပြထားပါတယ်။
Solutions Architect Associate မှ သင်သိပြီးသားများ
- Firehose delivers streaming data to S3, Redshift or OpenSearch with no code.
- It is near real time because it buffers, and it scales by itself.
- It can convert JSON to Parquet or ORC.
Buffer size
- Range
- 1 to 128 MiB
- Effect
- Bigger means fewer, larger objects
Buffer interval
- Range
- 0 to 900 seconds
- Effect
- Longer means more delay
Format conversion
- Range
- JSON in, Parquet or ORC out
- Effect
- Cheaper, faster queries
Dynamic partitioning
- Range
- Key from each record
- Effect
- One S3 prefix per key
| Setting | Range | Effect |
|---|---|---|
| Buffer size | 1 to 128 MiB | Bigger means fewer, larger objects |
| Buffer interval | 0 to 900 seconds | Longer means more delay |
| Format conversion | JSON in, Parquet or ORC out | Cheaper, faster queries |
| Dynamic partitioning | Key from each record | One S3 prefix per key |
1 / 2
Buffer size
- Range
- 1 to 128 MiB
- Effect
- Bigger means fewer, larger objects
Buffer interval
- Range
- 0 to 900 seconds
- Effect
- Longer means more delay
Format conversion
- Range
- JSON in, Parquet or ORC out
- Effect
- Cheaper, faster queries
| Setting | Range | Effect |
|---|---|---|
| Buffer size | 1 to 128 MiB | Bigger means fewer, larger objects |
| Buffer interval | 0 to 900 seconds | Longer means more delay |
| Format conversion | JSON in, Parquet or ORC out | Cheaper, faster queries |
2 / 2
Dynamic partitioning
- Range
- Key from each record
- Effect
- One S3 prefix per key
| Setting | Range | Effect |
|---|---|---|
| Dynamic partitioning | Key from each record | One S3 prefix per key |
ဘာလဲ
Firehose writes a batch when the buffer fills by size or by time, whichever comes first. For S3 the size runs from 1 to 128 MiB (default 5) and the interval from 0 to 900 seconds (default 300). With format conversion on, the buffer size must be at least 64 MiB. Size counts before compression. Bigger batches mean fewer, larger S3 objects, which analytics reads better. A Lambda function can transform each record: it returns the record with a result of Ok, Dropped or ProcessingFailed.
ဘာလဲ
Record format conversion turns JSON into Parquet or ORC. It needs a schema in an AWS Glue Data Catalog table. Input must be JSON, so convert CSV with a Lambda transform first. Dynamic partitioning picks a key out of each record, with inline parsing or a Lambda function, and writes objects under a prefix per key, such as a customer or a date. Athena then skips whole folders.
ဘာလဲ
Records that fail transformation or delivery go to an error prefix in S3, and you can also back up the raw source records. Firehose reads from direct puts, Kinesis Data Streams or Amazon MSK, and delivers to S3, Redshift (through S3), OpenSearch, Splunk, HTTP endpoints, Apache Iceberg tables and other targets. It does not keep data for replay.
မှတ်ထားရန်
- S3 buffer: 1 to 128 MiB (default 5), at least 64 with conversion, and 0 to 900 seconds (default 300).
- Lambda transform returns Ok, Dropped or ProcessingFailed per record.
- Conversion to Parquet or ORC needs JSON input and a Glue table schema.
- Dynamic partitioning writes one S3 prefix per key found in the records.
မှတ်ထားရန်
- Failed records go to an S3 error prefix. Source records can be backed up.
- No replay and no custom consumers: use Kinesis Data Streams for those.
စာမေးပွဲမှာ
- “Deliver JSON events to S3 as Parquet with no servers” points to Firehose record format conversion with a Glue table.
- “Write streaming data into one S3 folder per customer” points to Firehose dynamic partitioning.
- “Fewer small files in S3” points to a larger buffer size or interval.
ဒီ 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