mirror of https://github.com/apache/kafka.git
MINOR: Update documentation for enabling optimizations (#7099)
Updated docs for enabling all optimizations as of 2.3 Reviewers: Victoria Bialas <vicky@confluent.io>, Matthias J. Sax <mjsax@apache.org>
This commit is contained in:
parent
9829c72699
commit
d0548758e5
|
@ -80,6 +80,14 @@
|
|||
The new public interfaces <code>inMemoryWindowStore()</code> and <code>inMemorySessionStore()</code> are added to <code>Stores</code> and provide the built-in in-memory window or session store.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
As of 2.3.0 we've updated how to turn on optimizations. Now to enable optimizations, you need to do two things.
|
||||
First add this line to your properties <code>properties.setProperty(StreamsConfig.TOPOLOGY_OPTIMIZATION, StreamsConfig.OPTIMIZE);</code>, as you have done before.
|
||||
Second, when constructing your <code>KafkaStreams</code> instance, you'll need to pass your configuration properties when building your
|
||||
topology by using the overloaded <code>StreamsBuilder.build(Properties)</code> method.
|
||||
For example <code>KafkaStreams myStream = new KafkaStreams(streamsBuilder.build(properties), properties)</code>.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
In 2.3.0 we have added default implementation to <code>close()</code> and <code>configure()</code> for <code>Serializer</code>,
|
||||
<code>Deserializer</code> and <code>Serde</code> so that they can be implemented by lambda expression.
|
||||
|
|
Loading…
Reference in New Issue