Topic Creation · Console Producer · Console Consumer
With the broker running, create a Topic and wire up a Producer on Machine 2 and a Consumer on Machine 3 to see real-time message flow.
Design a distributed pipeline: Machine 1 (Broker), Machine 2 (Producer), Machine 3 (Consumer). Understand how advertised.listeners and firewall rules affect cross-machine connectivity.
Kafka decouples applications. Producers append records to the end of a Topic, and Consumers read those records sequentially from an offset. They operate completely independently of one another.
kafka-storage.bat random-uuid
kafka-storage.bat format -t <UUID> -c config\server.properties
kafka-server-start.bat config\server.properties
Or just click the green ⚡ Auto-Boot button.
kafka-topics.bat --create --topic fsd-topic --bootstrap-server 192.168.1.10:9092
kafka-console-consumer.bat --topic fsd-topic --bootstrap-server 192.168.1.10:9092 --from-beginning
kafka-console-producer.bat --topic fsd-topic --bootstrap-server 192.168.1.10:9092
Then type any message and press Enter!
Messages typed in Terminal 2 will appear instantly in Terminal 3 once the consumer is running!