MINOR: Update documentation for enabling optimizations
Updated docs for enabling all optimizations as of 2.3
Reviewers: Victoria Bialas Matthias J. Sax
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.
