Options for Running Kafka
| Option | You manage | Good for | Watch out for |
|---|---|---|---|
| Self-managed on VMs | Everything: OS, Kafka, upgrades, security, monitoring | Full control, stable on-premises setups | Operational effort, on-call |
| Kubernetes with an operator (Strimzi) | Cluster resources through YAML. The operator handles rolling updates and certificates | Teams already on Kubernetes, GitOps workflows | Storage and networking design, broker pods are stateful |
| Managed Kafka (Confluent Cloud, Amazon MSK, Aiven, Redpanda Cloud and others) | Topics, clients, access. Provider runs brokers | Teams that want to focus on applications | Cost at scale, vendor features and limits, network setup (private links) |
| Kafka-compatible services (Azure Event Hubs, others) | Little | Cloud-native integration | Check which Kafka APIs and features are supported (transactions, compaction, Streams) |
Strimzi: Kafka on Kubernetes
Strimzi is a CNCF project with an operator that runs Kafka (in KRaft mode in current versions), Kafka Connect, MirrorMaker 2 and the Kafka bridge using custom resources. You declare the cluster in YAML and the operator creates StatefulSets or pods, services, certificates and performs safe rolling updates.
metadataVersion values listed in your Strimzi release documentation.
Topics and Users as Code
The User Operator creates a Kubernetes Secret with the generated password, which the application pod mounts. Topics, users and ACLs now live in Git and go through review like code.
Kubernetes Design Considerations
| Topic | Guidance |
|---|---|
| Storage | Fast, persistent volumes per broker (SSD). Prefer local or high-IOPS network disks, avoid slow shared file systems. Do not let broker data live on ephemeral storage |
| Resources | Memory requests equal limits for brokers. Page cache is outside the JVM heap, so leave memory for it. Avoid CPU throttling |
| Availability | Pod anti-affinity and rack awareness, so replicas land on different nodes and zones. Use a PodDisruptionBudget (Strimzi sets it) |
| Networking | Brokers need individually addressable endpoints. Use Strimzi listener types: loadbalancer, nodeport, ingress, route. A single shared load balancer in front of all brokers does not work without per-broker advertising |
| Upgrades | Change spec.kafka.version, the operator does a rolling restart one broker at a time and waits for replicas to catch up |
| Dedicated nodes | Use taints and tolerations to give Kafka its own node pool, so noisy neighbours do not hurt latency |
Managed Services
| Service | Notes |
|---|---|
| Confluent Cloud | Fully managed, serverless-style clusters (Basic, Standard, Enterprise, Dedicated), managed connectors, Schema Registry, Flink and governance features. Pay for throughput, storage and features |
| Amazon MSK (Provisioned and Serverless) | Managed brokers inside your VPC with IAM, SASL or TLS auth, MSK Connect, monitoring in CloudWatch. You still choose broker types and storage |
| Azure Event Hubs (Kafka endpoint) | Kafka protocol compatibility for many clients. Verify support for the features you need |
| Aiven, Redpanda Cloud, others | Managed offerings on several clouds, each with own pricing and features |
Cloud Connection Checklist
- Private connectivity (VPC peering, PrivateLink, private endpoints) instead of public internet
- Authentication supported by the service (API keys, SASL/SCRAM, IAM). Rotate credentials
- Clients in the same region and zone as brokers when possible (latency and cross-zone data cost)
- Quotas and limits: partitions per cluster, connections, throughput units
- Monitoring: provider metrics APIs plus client-side metrics (lag, errors)
- Exit plan: keep applications on standard Kafka APIs to avoid lock-in
Sizing a Cluster (Rule-of-Thumb Method)
- Throughput: peak MB/s in and out. Example: 50 MB/s in, 3 consumer groups reading, replication factor 3
- Network per broker includes replication: ingress = 50 MB/s x 3 (replicas) shared over brokers, egress = 50 MB/s x (consumers + 2 follower fetches). With 6 brokers each sees about 25 MB/s ingress and about 125 MB/s egress, which must stay well below NIC and disk limits (plan for 50 to 60 percent peak utilisation)
- Storage: daily data x retention days x replication factor, plus 30 percent headroom. Example: 2 TB/day x 7 days x 3 = 42 TB, plus headroom about 55 TB total
- Partitions: target throughput / per-partition throughput (measure it, often 10 to 30 MB/s per partition on producers) and the maximum number of parallel consumers you want. Keep partition counts per broker moderate (a few thousand)
- Memory: 6 to 8 GB heap is enough for most brokers, the rest goes to page cache
- Test: validate with
kafka-producer-perf-test.shand your own message sizes before launch
Conclusion
Run Kafka yourself on VMs or on Kubernetes with the Strimzi operator (clusters, topics and users as YAML), or use managed services such as Confluent Cloud and Amazon MSK. Design storage, networking and availability zones carefully, size from throughput, retention and replication, and keep clients on standard Kafka APIs.

