title: Flink Stream Window Memory Usage
body: <p>I'm evaluating Flink specifically for the streaming window support for possible alert generation. My concern is the memory usage so if someone could help with this it would be appreciated.</p>
  
  <p>For example, this application will be consuming potentially a significant amount of data from the stream within a given tumbling window of say 5 minutes. At the point of evaluation, if there were say a million documents for example that matched the criteria, would they all be loaded into memory? </p>
  
  <p>The general flow would be:</p>
  
  <p><code>producer -&gt; kafka -&gt; flinkkafkaconsumer -&gt; table.window(Tumble.over("5.minutes").select("...").where("...").writeToSink(someKafkaSink)</code></p>
  
  <p>Additionally, if there is some clear documentation that describes how memory is being dealt with in these cases that I may have overlooked that someone could out that would be helpful.</p>
  
  <p>Thanks</p>