confluentinc / confluentinc/parallel-consumer
Health-checks
- Dominant language
- Java
- Stars
- 299
- Forks
- 172
- PR merge metrics
- No merged PRs in 30d
Description
Kafka-streams exposes a method for retrieving the current state: `org.apache.kafka.streams.KafkaStreams#state`.
We use this for implementing health-checks. If `state` is in `created, rebalancing or running` the application is considered healthy. Otherwise the app is considered unhealthy and the application would normally be stopped/restarted.
In PC I've implemented a health-check querying `io.confluent.parallelconsumer.ParallelEoSStreamProcessor#isClosedOrFailed == false`.
Would a different, more "healthcheck-like" abstraction be smart? Perhaps on the `io.confluent.parallelconsumer.ParallelConsumer` interface? The current method requires a cast to ParallelEoSStreamProcessor.
(not critical!)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.