← Go Back
Kafka Project - Kafka
Kafka application to produce sample data, with single consumer to read the messages.
- Kafka application build using zookeeper and kafka image, with 1 replication and 1 topic.
- Producer: Produces data, picks random value from 1 to 10, and decides the
priority of the message. If value is above 5, it is categorized as High status.
- Consumer: Consumer messages produced by Producer on topic
test_topic.
Sample data consumed: {
"test_data": {
"random_value": 7
},
"timestamp": 2023-10-14 15:57:59.575960,
"value_status": "High"
}