Kafka is in general publish-subscribe based messaging system. Producers publish messages and consumers consume or pull that data. A real-life example is Dish TV, which publishes different channels like sports, movies, music, etc., and anyone can subscribe to their own set of channels and get them whenever their subscribed channels…