Apache Kafka is an open-source distributed streaming system used for stream processing, real-time data pipelines,…