Comments (3)
Unfortunately, I think you'll have to implement your own, tailored to how your application's using Kafka.
from spring-boot.
Thanks for the suggestion.
Unfortunately, I don't see how the health indicator from Spring Cloud Stream's Kafka binder can be ported to Spring Boot. The Kafka binder has a lot more information available to it about how Kafka's being used than a general Spring Boot app does. This information allows it to identify what it should check to determine whether or not Kafka's healthy for its purposes. Spring Boot doesn't have this information available and has to fall back on a more general-purpose approach.
It sounds like you have already seen #14088 which describes why it isn't possible to offer a general-purpose health indicator for Kafka. I don't think anything's changed since then and it makes sense for Spring Cloud Stream's Kafka Binder to continue to provide its own indicator.
from spring-boot.
Thanks for the fast reply!
Yes, I already investigated #14088 sadly I thought it may not be possible even with the given example in the spring-cloud project. I thought it helped but I "tried" to reimplement that behavior and found out as you mentioned that the information I have is much less compared to the spring-cloud way 😄
I saw that the spring-cloud implementation got a KafkaTopicProvisioner
which provides a ton of information for the check. So I understand the fact that it isn't easy to provide an out-of-the-box working check for everyone.
My hopes were high that somehow having a port without the need to implement it on my own with the risk of problems when I need to upgrade to newer versions 😄
from spring-boot.
Related Issues (20)
- Upgrade to Neo4j Java Driver 5.23.0
- Deprecation reason for the autotime enabled properties is confusing HOT 5
- Add support for environmental boolean conditional annotations in ConfigurationMetadataAnnotationProcessor HOT 3
- Missing functionality or Different behavior of ServerRequestObservationConvention, does not provide a way to add tags to long task timers HOT 2
- Document more clearly that username and password are not used when spring.data.redis.url is set
- Document more clearly that username and password are not used when spring.data.redis.url is set
- Upgrade to Micrometer 1.4.0-M2
- Upgrade to Micrometer Tracing 1.4.0-M2
- Upgrade to Reactor 2024.0.0-M5
- Upgrade to Spring Framework 6.2.0-M7
- Upgrade to Spring LDAP 3.2.5
- Upgrade to Spring Data 2024.0.3
- Upgrade to Neo4j Java Driver 5.23.0
- Upgrade to Spring Security 6.4.0-M2
- Upgrade to Spring Authorization Server 1.4.0-M1
- Upgrade to Spring Pulsar 1.2.0-M1
- Upgrade to Spring Session 3.4.0-M2
- I'm going back to bed now
- Feature request to support refreshAfterWrite caffeine cache natively HOT 1
- Getting Config Server 401 error during Spring 3.X update HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-boot.