Apache Kafka is a tool used in Streaming Real-time data.
Kafka consists of:
Producer generates the topic.
Consumer subscribes to the topic.
The topics published are stored in Kafka Clusters or Brokers.
Zookeeper is the king in Kafka all the memory resource is managed and maintained by Zookeeper.
The image below depicts the working architecture of Zookeeper.