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