I have scenario where i need to push message into kafka topic using java....but condition is if my one cluster goes down then need to connect another kafka cluster and push the message.
You would need to configure two DefaultKafkaProducerFactory
beans and two KafkaTemplate
s.
When you get an exception, fail over to the other template.