[Demo] Running Kafka at scale: lessons from billions of records a day

  • 05 Nov, 2026

I have worked on a Kafka platform that carried tens of billions of records a day. Nothing here is exotic, but each point cost someone a bad night once.

Partitions are a decision you live with

You can add partitions later, but key ordering breaks when you do. Pick a count with headroom for consumer parallelism, and do not go wild. Too many partitions slow recovery and leader elections.

Retention is a cost knob

Disk is usually the first real limit. Set retention per topic from how long consumers need to catch up, not from habit. Keep a note of who owns each topic.

Watch consumer lag, not just brokers

Healthy brokers can hide a stuck consumer. The metrics I look at first:

  • Consumer group lag per partition
  • Under-replicated partitions
  • Request latency on produce and fetch
  • Disk usage and network throughput per broker

Upgrade slowly

Roll one broker at a time, wait for replicas to catch up, and check the protocol and inter-broker versions in the release notes before you start. Keep the rollback plan written down.

Own the paperwork

Topic naming, ownership, and quotas feel like bureaucracy until a noisy producer takes the cluster down. Quotas are cheaper than incidents.

Related Posts