'How can I get a Response from Kafka?

I know the flow when there is a Producer and a Consumer, but how can I get a Response after the Consumer receives the messages?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source