Here is a repository with all the various ways of communicating with a Kafka cluster using Java. We also look at the two ways of communicating with Kafka using Spring framework.
Kafka Communication using Apache Kafka Clients Library. here.
Kafka Communication using Spring Kafka. here.
Kafka Communication using Spring Cloud Streams. here.