Process Flow - First message (produce and consume)
Start Producer
Create message
Send message to Kafka topic
Message stored in topic partition
Start Consumer
Poll topic for messages
Receive first message
Process and print message
End
The producer creates and sends a message to a Kafka topic. The consumer then polls the topic, receives the first message, and processes it.