concept notification in category kafka

appears as: notification, notification, notifications
Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API

This is an excerpt from Manning's book Kafka Streams in Action: Real-time apps and microservices with the Kafka Streams API.

During this recovery period, any state stores you have exposed for querying are unavailable, so it would be nice to get an idea of how long this restoration process is likely to take and how progress is coming along. Additionally, if you have a custom state store, you’d like notification of when the restore is starting and ending so you can do any necessary setup or teardown tasks.

The StateRestoreListener interface, much like the StateListener, allows notification of what’s going on inside the application. StateRestoreListener has three methods: onRestoreStart, onBatchRestored, and onRestoreEnd. The KafkaStreams.setGlobalRestoreListener method is used to specify the global restore listener to use.