I am writing a Spring Boot app with Spring Kafka. As my app is focused on Kafka Streams and I need to use interactive queries and query my state stores I am wondering: is there any particular way to access kafka streams state stores with Spring Kafka?
From what I've seen there is some support in Spring Cloud Stream Binder Kafka Streams for interactive queries but I cannot find anything about them in Spring Kafka. Am I missing something or there is no support for it in Spring-Kafka?
And if so - is there anything in particular I should have in mind while creating my own version of org.springframework.cloud.stream.binder.kafka.streams.InteractiveQueryService ?
It seemed a little too much to include Spring Cloud Streams when all I use is only Kafka and Kafka Streams but if interactive query support provided there would be difficult to implement on my own maybe it is recommended to include it anyway? I would appreciate any advise.
spring-kafkais just for producer/consumer API, not Kafka Streams - OneCricketeerspring-cloud-stream-binder-kafka-streamsincludesspring-kafka, so there is no reason you couldn't use them together - OneCricketeerInteractiveQueryServiceby accessing the underlyingKafkaStreamsobject if you want to avoid using Spring Cloud Stream for this. Spring Cloud Stream provides idiomatic usage of accessing the state store, but if you don't have the requirement of going to a micro services based model, then I understand that you might want to use spring-kaka directly. - sobychacko