Kafka

My tips and tricks

Local Development

  1. Been using wurstmeister/kafka-docker for local development and debugging. Doesn't use too much system resource and allows me to get the job done on a laptop.

  2. There's also lensesio/fast-data-dev which has a nice interface, but it takes up too many resources on the laptop, I keep this around for the desktop at home.

Command Line

Describe a topic

kafka-topics.sh --describe --topic example.topic --zookeeper 192.168.1.4

Increasing topic partitions

Note: You can only increase the partition count.

kafka-topics.sh --alter --topic example.topic --zookeeper 192.168.1.4 --partitions 2

Last updated