Hartmut Armbruster created KAFKA-18996: ------------------------------------------
Summary: Expose addReadOnlyStateStore ( Key: KAFKA-18996 URL: https://issues.apache.org/jira/browse/KAFKA-18996 Project: Kafka Issue Type: Improvement Components: streams Reporter: Hartmut Armbruster With [KIP-813|https://cwiki.apache.org/confluence/display/KAFKA/KIP-813%3A+Shareable+State+Stores], new 'read-only state store' were introduced. The initial scope was to add builder.table() (with "source topic optimization") to the PAPI, and is now implemented on the Topology class: [Topology#addReadOnlyStateStore(_)|https://kafka.apache.org/38/javadoc/org/apache/kafka/streams/Topology.html#addReadOnlyStateStore(org.apache.kafka.streams.state.StoreBuilder,java.lang.String,org.apache.kafka.streams.processor.TimestampExtractor,org.apache.kafka.common.serialization.Deserializer,org.apache.kafka.common.serialization.Deserializer,java.lang.String,java.lang.String,org.apache.kafka.streams.processor.api.ProcessorSupplier)] h4. Proposed Changes Expose the new functionality via a new _public interface_ on {{{}org.apache.kafka.streams.StreamsBuilder{}}}. (a similar interface also exists for global state store -> [StreamsBuilder.addGlobalStore(_)|https://kafka.apache.org/38/javadoc/org/apache/kafka/streams/StreamsBuilder.html#addGlobalStore(org.apache.kafka.streams.state.StoreBuilder,java.lang.String,org.apache.kafka.streams.kstream.Consumed,org.apache.kafka.streams.processor.ProcessorSupplier]) h4. Footnotes Here's a related discussion on community slack: [https://confluentcommunity.slack.com/archives/C48AHTCUQ/p1741813060927299?thread_ts=1741539889.829939&cid=C48AHTCUQ] -- This message was sent by Atlassian Jira (v8.20.10#820010)