Spring for Apache Kafka
Spring for Apache Kafka: the producer template, listener containers, error handling and dead-letter topics, transactions and exactly-once, Kafka Streams, and topic provisioning. Kafka is the default event backbone in interviews, so this section carries weight.
part ofSpring Frameworkoverview, primer and where to startread it →on this pageshowhide
explore
- KafkaTemplate & Producers6 questions
- @KafkaListener & Containers5 questions
- Error Handling & Dead-Letter Recovery5 questions
- Kafka Transactions & Exactly-Once5 questions
- Kafka Streams Support5 questions
- KafkaAdmin & Topic Provisioning5 questions
questions
page 2 of 2How do you wire a materialized KTable state store in Spring and expose it for interactive queries?
level: principalimportance: nice to knowfreq 22%
basics
~10 sBuild a KTable with Materialized.as("store-name") so Kafka Streams keeps a named state store. Then reach the running client via StreamsBuilderFactoryBean.getKafkaStreams() (or KafkaStreamsInteractiveQueryService) and call store(...) to read current values by key.
showing 31–31 of 31