My code is currently using an InMemoryKeyValueStore, which avoids any persistence to disk or to kafka. I want to use rocksdb (Stores.persistentKeyValueStore) so that the ap
How do I register it with the streams builder?
By calling StreamsBuilder#addStateStore()
.
https://kafka.apache.org/22/javadoc/org/apache/kafka/streams/StreamsBuilder.html#addStateStore-org.apache.kafka.streams.state.StoreBuilder-
See StateStoresInTheDSLIntegrationTest
at https://github.com/confluentinc/kafka-streams-examples fro an end-to-end demo application.