### Create topic
`kafka-topics.sh --create --bootstrap-server localhost:9092 --replication-factor 1
--partitions 1 --topic [TOPIC_NAME]`
- -\-bootstrap-server localhost:9092 -> where kafka is running
- -\-replication-factor 1 ->
- -\-partitions 1 ->
- -\-topic [TOPIC_NAME] -> topic name
### List topics
`kafka-topics.sh --list --bootstrap-server localhost:9092`
### Create producer
#### Console producer
`kafka-console-producer.sh --broker-list localhost:9092 --topic [TOPIC_NAME]`
- -\-broker-list localhost:9092 -> consumer server (kafka running)
### Create consumer
#### Console consumer
`kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic [TOPIC_NAME]
--from-beginning`
- -\-from-beginning -> Get messagens from the beginning, if you want only new
messages, do not write this command