服务 · Analytics
Amazon Managed Streaming for Apache Kafka (Amazon MSK)
Managed Apache Kafka. Choose it when applications already use Kafka.
本课尚未翻译,暂以英文显示。
API
- MSK
- Apache Kafka
- Kinesis Data Streams
- Kinesis API
Existing Kafka apps
- MSK
- Change only the endpoint
- Kinesis Data Streams
- Must be rewritten
Capacity
- MSK
- Brokers, or Serverless
- Kinesis Data Streams
- Shards, or on-demand
Retention
- MSK
- You configure it
- Kinesis Data Streams
- 24 hours to 365 days
Pick it for
- MSK
- Kafka ecosystem, migrations
- Kinesis Data Streams
- New AWS-native streams
| Compare | MSK | Kinesis Data Streams |
|---|---|---|
| API | Apache Kafka | Kinesis API |
| Existing Kafka apps | Change only the endpoint | Must be rewritten |
| Capacity | Brokers, or Serverless | Shards, or on-demand |
| Retention | You configure it | 24 hours to 365 days |
| Pick it for | Kafka ecosystem, migrations | New AWS-native streams |
1 / 2
API
- MSK
- Apache Kafka
- Kinesis Data Streams
- Kinesis API
Existing Kafka apps
- MSK
- Change only the endpoint
- Kinesis Data Streams
- Must be rewritten
Capacity
- MSK
- Brokers, or Serverless
- Kinesis Data Streams
- Shards, or on-demand
| Compare | MSK | Kinesis Data Streams |
|---|---|---|
| API | Apache Kafka | Kinesis API |
| Existing Kafka apps | Change only the endpoint | Must be rewritten |
| Capacity | Brokers, or Serverless | Shards, or on-demand |
2 / 2
Retention
- MSK
- You configure it
- Kinesis Data Streams
- 24 hours to 365 days
Pick it for
- MSK
- Kafka ecosystem, migrations
- Kinesis Data Streams
- New AWS-native streams
| Compare | MSK | Kinesis Data Streams |
|---|---|---|
| Retention | You configure it | 24 hours to 365 days |
| Pick it for | Kafka ecosystem, migrations | New AWS-native streams |
是什么
Apache Kafka is an open-source streaming platform, with topics, partitions, producers and consumers. Amazon Managed Streaming for Apache Kafka (Amazon MSK) runs real Kafka for you. It creates the brokers, spreads them across Availability Zones, replaces failed brokers, and takes care of the metadata servers. Because it is open-source Kafka, existing Kafka applications and tools work without code changes.
是什么
MSK Provisioned lets you choose the number and size of brokers. MSK Serverless removes capacity planning: it scales by itself. MSK Connect runs Kafka Connect connectors, which move data between Kafka and other systems such as S3 and databases, with no servers to run. You control access with IAM, TLS, or SASL, and data can be encrypted at rest.
The usual decision is Kinesis against MSK. Choose Kinesis Data Streams for a new, AWS-native stream with the least work. Choose MSK when you already have Kafka applications, need Kafka’s ecosystem, or want to avoid rewriting code.
要记住
- Real Apache Kafka, so existing Kafka code and tools work as they are.
- Brokers are spread over Availability Zones. A minimum of one broker per zone.
- Provisioned (you size brokers) or Serverless (no capacity planning).
- MSK Connect moves data between Kafka and other systems.
要记住
- Access control with IAM, TLS or SASL. Encryption in transit and at rest.
考试中
- “Migrate an on-premises Apache Kafka cluster with minimal changes” points to Amazon MSK.
- “New streaming application, least operational effort, AWS-native” points to Kinesis Data Streams.
- “Kafka without capacity planning” points to MSK Serverless.
别和这些弄混
Amazon KinesisReal-time streams that you size in shards. Partition keys decide order and balance.
Amazon Simple Queue Service (Amazon SQS)The settings that decide behavior: visibility timeout, long polling, delay, retention, DLQs, and scaling on queue depth.
Amazon MQManaged ActiveMQ and RabbitMQ brokers, for applications that already use JMS, AMQP or MQTT and cannot be rewritten.