AWS · Analytics
Amazon Managed Streaming for Apache Kafka (Amazon MSK)
Fully managed Apache Kafka: run Kafka clusters and connectors on AWS using standard Kafka APIs, provisioned or serverless.
What it is and what problem it solves
Amazon Managed Streaming for Apache Kafka (MSK) runs Apache Kafka for you. Applications use the normal Kafka client libraries and APIs; AWS provisions brokers, replaces failed ones, patches them, and manages the metadata layer. Provisioned clusters use Standard or Express brokers you size; MSK Serverless scales automatically. MSK Connect runs Kafka Connect connectors, and MSK Replicator copies data between clusters.
When to use it
- You already use Kafka, or need Kafka-specific features and the ecosystem (Kafka Streams, Connect, Schema Registry).
- Migrating self-managed Kafka without rewriting producers and consumers.
- High-throughput event streaming with long retention.
When to avoid it
- No Kafka requirement: Kinesis Data Streams is simpler and more AWS-native.
- Simple queues: SQS. Event routing: EventBridge.
Scaling model and bottlenecks
Provisioned clusters scale by adding brokers and storage (Express brokers scale storage automatically); partitions spread load. MSK Serverless scales capacity automatically within its limits.
Limits and quotas
| Item | Value | Context | Source |
|---|---|---|---|
| Brokers per cluster (Standard) | 30 for ZooKeeper-based clusters; 60 for KRaft-based clusters Can be raised with a quota request |
Source checked |
|
| Storage per Standard broker | 1 GiB to 16,384 GiB | Source checked |
|
| MSK Serverless throughput per cluster | 200 MBps in, 400 MBps out | Source checked |
|
| MSK Serverless maximum message size | 8 MiB | Source checked |
Quotas and limits change. Check the linked source before designing around a number.
Cost model
What you pay for
Provisioned: broker instance-hours, storage per GB-month and optional provisioned storage throughput (Express brokers also charge per GB written). Serverless: cluster-hours, partition-hours, data in and out, and storage. MSK Connect: per MCU-hour. Data transfer and private connectivity are extra.
Where it is cost-efficient
Large, steady Kafka workloads that would otherwise need a team to run self-managed brokers.
Where costs grow
Over-provisioned brokers, many partitions on Serverless, and cross-zone replication traffic.
Cost controls and common surprises
Right-size brokers and partitions, set retention to what consumers need, and use tiered storage where supported.
Prices differ by Region and change over time; see the pricing page linked under Sources.
Security
Controls the service provides
VPC-only brokers, encryption at rest with KMS and in transit with TLS, and authentication with IAM, SASL/SCRAM or mutual TLS.
What you configure
Choose an authentication method, set Kafka ACLs or IAM policies per topic, and keep clusters private.
Logging and monitoring
Broker logs to CloudWatch Logs, S3 or Firehose; CloudWatch metrics; CloudTrail.
Related security services
IAM, KMS, Secrets Manager (SASL/SCRAM), VPC.
Shared responsibility
AWS manages brokers and infrastructure. You manage topics, access and clients.
Availability, backup and failure behavior
Brokers are spread across Availability Zones with Kafka replication; failed brokers are replaced automatically. MSK Replicator supports cross-Region copies.
Common service combinations
MSK Connect to S3 and databases, Lambda as a consumer, Managed Service for Apache Flink, Glue Schema Registry.
Business application examples
- A bank moves its self-managed Kafka event backbone to MSK without changing producers or consumers.
Exam cues and common confusions
- Managed Apache Kafka: MSK. Streaming without Kafka: Kinesis Data Streams.
- Kafka with no capacity planning: MSK Serverless.
Related
Courses and lessons
- Streaming data: Kinesis Data Streams, Data Firehose and Amazon MSK · AWS Solutions Architect – Associate (SAA-C03) · Members
Services, comparisons and patterns
- Amazon Kinesis · Service
- Amazon SQS · Service
- Amazon EventBridge · Service
- AWS Lambda · Service
- Kinesis Data Streams vs MSK vs SQS · Comparison
- SQS vs SNS vs EventBridge · Comparison
Sources
Independent study material, not affiliated with or endorsed by Amazon Web Services. AWS and service names are trademarks of Amazon.com, Inc. or its affiliates.