Spark streaming: batch interval vs window
<p>I have spark streaming application which consumes kafka messages. And I want to process all messages coming last 10 minutes together.
Looks like there are two approaches to do job done:</p>

<pre><code>val ssc = new StreamingContext(new SparkConf(), Minutes(10))
val dstream = ....
</code></pre>

<p>and </p>

<pre><code>val ssc = new StreamingContext(new SparkConf(), Seconds(1))
val dstream = ....
dstream.window(Minutes(10), Minutes(10))
</code></pre>

<p>and I just want to clarify is there any performance differences between them</p>