服务 · Analytics · 基于 SAA-C03
Amazon Managed Streaming for Apache Kafka (Amazon MSK)
Managed Kafka for ML ingestion: cluster types, MSK Connect, and the Kafka or Kinesis choice.
本课尚未翻译,暂以英文显示。
你在Solutions Architect Associate中已学过
- MSK runs real Apache Kafka, so Kafka clients and tools work unchanged.
- Provisioned clusters have brokers you size. Serverless has no capacity planning.
- MSK Connect moves data between Kafka and other systems.
API
- Kinesis
- Kinesis API
- MSK
- Kafka API
Unit of order
- Kinesis
- Shard
- MSK
- Partition
Capacity
- Kinesis
- Shards or on-demand
- MSK
- Brokers or Serverless
Retention
- Kinesis
- 24 hours to 365 days
- MSK
- Set per topic
Choose it for
- Kinesis
- New AWS-native streams
- MSK
- Existing Kafka code and tools
| Compare | Kinesis | MSK |
|---|---|---|
| API | Kinesis API | Kafka API |
| Unit of order | Shard | Partition |
| Capacity | Shards or on-demand | Brokers or Serverless |
| Retention | 24 hours to 365 days | Set per topic |
| Choose it for | New AWS-native streams | Existing Kafka code and tools |
1 / 2
API
- Kinesis
- Kinesis API
- MSK
- Kafka API
Unit of order
- Kinesis
- Shard
- MSK
- Partition
Capacity
- Kinesis
- Shards or on-demand
- MSK
- Brokers or Serverless
| Compare | Kinesis | MSK |
|---|---|---|
| API | Kinesis API | Kafka API |
| Unit of order | Shard | Partition |
| Capacity | Shards or on-demand | Brokers or Serverless |
2 / 2
Retention
- Kinesis
- 24 hours to 365 days
- MSK
- Set per topic
Choose it for
- Kinesis
- New AWS-native streams
- MSK
- Existing Kafka code and tools
| Compare | Kinesis | MSK |
|---|---|---|
| Retention | 24 hours to 365 days | Set per topic |
| Choose it for | New AWS-native streams | Existing Kafka code and tools |
是什么
A Kafka topic is split into partitions. A partition is the unit of order and of parallelism: records in one partition stay in order, and one consumer in a group reads each partition. The partition count therefore caps how many consumers in a group run in parallel. Replicas of each partition sit on different brokers in different Availability Zones.
是什么
MSK offers provisioned clusters, where you choose broker type and count, and MSK Serverless, which scales by itself. Express brokers are a provisioned broker type built for higher throughput per broker and faster scaling, in three Availability Zones. MSK Connect runs Kafka Connect connectors without servers: for example an S3 sink connector that writes a topic to S3, or a source connector that reads a database change feed.
是什么
To feed ML pipelines, a Flink application can read a topic, Firehose can use MSK as a source and deliver to S3, and a Glue streaming job can read it. Choose MSK when Kafka applications or the Kafka ecosystem already exist. Choose Kinesis Data Streams for a new stream with the least setup.
要记住
- A partition keeps order and sets consumer parallelism in a group.
- Provisioned: you pick brokers. Serverless: no capacity planning. Express brokers: higher throughput per broker.
- MSK Connect runs source and sink connectors with no servers.
- Flink, Firehose and Glue streaming jobs can read from MSK.
要记住
- Existing Kafka code points to MSK. A new AWS-native stream points to Kinesis.
考试中
- “Move an existing Kafka application with no code changes” points to Amazon MSK.
- “Write a Kafka topic to S3 without servers” points to an MSK Connect sink connector, or Firehose.
- “Newest stream, least operations, AWS-only clients” points to Kinesis Data Streams.
本任务内容 · 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