Kafka
My tips and tricks

Local Development

  1. 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. 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

1
kafka-topics.sh --describe --topic example.topic --zookeeper 192.168.1.4
Copied!

Increasing topic partitions

Note: You can only increase the partition count.
1
kafka-topics.sh --alter --topic example.topic --zookeeper 192.168.1.4 --partitions 2
Copied!
​