Kafka Topic Planner
Configure your Apache Kafka topic parameters — partition count, replication factor, retention, and message size. Get storage estimates, throughput capacity, and a ready-to-run kafka-topics.sh create command.
Topic Configuration
kafka-topics.sh Command
Broker Config Recommendations
Frequently Asked Questions
How many partitions should I use for a Kafka topic?▼
Partitions determine parallelism. A common rule: number of partitions = max(target throughput / single-partition throughput, num consumers in consumer group). Start conservatively (e.g. 6–12) because you can increase partitions later but cannot decrease them without recreating the topic. More partitions mean more file handles and leader elections, so avoid over-partitioning.
What is the replication factor in Kafka?▼
Replication factor controls how many broker copies exist for each partition. A factor of 3 means 1 leader + 2 followers — the industry standard for production clusters. The broker count must be >= replication factor. Higher replication improves fault tolerance (tolerate N-1 broker failures) but increases storage and network usage proportionally.
How does Kafka retention work?▼
Kafka retains messages based on time (retention.ms) or size (retention.bytes). When a segment exceeds the retention window, it is eligible for deletion. Default is 7 days (604800000 ms). For event sourcing or audit logs you might set retention to weeks or months. Compacted topics use log compaction instead — keeping only the latest value per key indefinitely.
What is the max.message.bytes setting?▼
max.message.bytes controls the maximum size of a single message (default 1 MB). If your pipeline produces large payloads (images, documents), increase this alongside fetch.message.max.bytes on consumers and replica.fetch.max.bytes on brokers. For very large payloads consider storing data externally and passing a reference key via Kafka instead.
How do I estimate Kafka storage requirements?▼
Storage per partition = (throughput MB/s per partition) × (retention seconds). Total storage = storage per partition × num partitions × replication factor. Add 20–30% overhead for index files and segment gaps. For a topic with 100 MB/s throughput, 10 partitions, replication factor 3, and 24h retention: (10 MB/s × 86400s × 3) ≈ 2.5 TB across the cluster.
Related Products
on GumroadPremium Workflow Pack
Production-grade workflows, architecture guides, and deployment scripts for teams that ship. 10 advanced CI/CD workflows (blue-green, canary, E2E, security), 5 architecture deep-dives, code review checklist, PR process guide, and 5 battle-tested Bash deployment scripts.
Buy on Gumroad →GitHub Actions CI/CD Templates Pack
12 production-ready GitHub Actions workflow templates covering Node.js, Python, Docker, multi-environment deployments, security scanning, and auto-changelog. Copy, paste, ship.
Buy on Gumroad →Developer Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →You Might Also Need
Fake Data Generator
Generate realistic fake user data for testing and development. Choose locale (en/zh-TW/ja), count (1-100), fields to include, and output format (JSON/CSV/SQL INSERT). 100% browser-based.
Open free tool →
Kafka Topic Config Generator
Generate Kafka topic creation CLI commands, config properties, server.properties snippets, and Terraform resource blocks.
Open free tool →
Mock Data Generator
Generate realistic mock JSON data from a schema definition. Supports name, email, date, UUID, number, boolean, and more. Copy JSON arrays for test fixtures and API mocking.
Open free tool →
More Free Tools
Related Articles
Kafka vs NATS vs Redpanda: Modern Event Streaming Showdown 2026
A deep comparison of Apache Kafka, NATS JetStream, and Redpanda for event streaming in 2026. Covers throughput benchmarks, architecture, operational complexity, Kubernetes deployment, and which platform fits your use case.
Vercel AI SDK: Complete Guide to Streaming, Tool Calling & Multi-Provider in 2026
Master the Vercel AI SDK in 2026. Streaming text and objects, tool calling, multi-provider support (OpenAI, Claude, Gemini), agents, and production patterns. TypeScript-first guide.
Cloudflare Workers & Wrangler v4 Complete Guide 2026
Complete guide to Cloudflare Workers and Wrangler v4 in 2026. Learn wrangler.toml configuration, Workers vs Pages, KV/R2/D1 bindings, environment management, local development with miniflare, and production deployment pipelines.
ArgoCD vs Flux: GitOps Tools Compared for Production
ArgoCD vs Flux 2026: compare architectures, sync strategies, multi-tenancy, UI capabilities, RBAC models, and performance to choose the right GitOps tool for your Kubernetes platform.
Backstage Developer Portal 2026: Internal Platforms That Scale
Backstage by Spotify is the gold standard for internal developer portals. Learn how to set up Backstage, configure the software catalog, add TechDocs, and build plugins to scale developer productivity.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →