Minimal Example for How-to:
- Failover Kafka between Primary and Secondary clusters
a.
KafkaProducerErrorHandlerb.KafkaSwitchCluster - Switch Back to Primary Once it is available again (on a Timer.)
a.
KafkaProducerErrorHandler#primarySwitch()
Using@Scheduledfor the timer.