Kafka configuration - gekomad/music-store GitHub Wiki

Create topics

kafka-topics --create --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic artistTopic1

in production environment set --replication-factor 2 or 3

Cleanup policy

log.segment.byte
log.segment.ms
log.cleanup.polycy

log.retention.hours
log.retention.bytes

External resources

How to choose the number of topics/partitions in a Kafka cluster?