I have two cluster setup cluster-1 at site 1(3 brokers) and cluster-2 at site 2(3 brokers) . Using spring kafka(1.3.6) consumer( one machine) and listening messages through @KafkaListener annotation . How do we instantiate multiple KafkaListenerContainerFactory for each cluster (c1 and c2) and listening data from both the cluster at the same time.
My listener should consume messages from both the cluster at the same time .