<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic streaming vs batch, unbounded vs bound in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97441#M39484</link>
    <description>&lt;P&gt;Any one can help me understand why cannot we unify streaming with batch and unbounded with bounded, if we regard the streaming/unbounded as mini-version of batch/bounded, please?&lt;/P&gt;&lt;P&gt;i.e., if I set one second as the frequency for batch processing, will it be the same as streaming, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 03 Nov 2024 23:21:35 GMT</pubDate>
    <dc:creator>jonxu</dc:creator>
    <dc:date>2024-11-03T23:21:35Z</dc:date>
    <item>
      <title>streaming vs batch, unbounded vs bound</title>
      <link>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97441#M39484</link>
      <description>&lt;P&gt;Any one can help me understand why cannot we unify streaming with batch and unbounded with bounded, if we regard the streaming/unbounded as mini-version of batch/bounded, please?&lt;/P&gt;&lt;P&gt;i.e., if I set one second as the frequency for batch processing, will it be the same as streaming, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 03 Nov 2024 23:21:35 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97441#M39484</guid>
      <dc:creator>jonxu</dc:creator>
      <dc:date>2024-11-03T23:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: streaming vs batch, unbounded vs bound</title>
      <link>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97491#M39497</link>
      <description>&lt;P&gt;This could be a very long thread, but to summarize it we could refer to the improvements or streaming specific features to understand why these two are not the same, and why these features were created. Essentialy, Spark streaming(unbounded) jobs are fundamentally different from high-frequency batch jobs(bounded), so it’s not as simple as treating streaming as "tiny batches". Why?:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Structured Streaming API&lt;/STRONG&gt;: Spark has an API just for streaming, designed to handle continuous, real-time data without waiting for entire datasets like batch jobs do. Reaching this level of improvement and difference by self implementing them in a batch job, would require a lot of end user job (not worth it)&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Micro-Batch Execution&lt;/STRONG&gt;: Structured Streaming processes data in &lt;STRONG&gt;near&lt;/STRONG&gt;-instant “micro-batches,” starting processing as soon as data arrives, which a high-frequency batch job can’t do effectively.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Event Time &amp;amp; Watermarking&lt;/STRONG&gt;: Unlike batch jobs, Spark streaming can work with event time and uses watermarks to handle late data and out-of-order events accurately.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Stateful Processing&lt;/STRONG&gt;: Streaming can track and hold state across micro-batches for long-running aggregations, which batch jobs lack without constant workarounds.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Continuous Processing Mode&lt;/STRONG&gt;: Spark offers experimental continuous processing for true real-time execution, which batch jobs can’t replicate since they rely on periodic scheduling.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Exactly-Once Fault Tolerance&lt;/STRONG&gt;: Streaming jobs use checkpoints to achieve exactly-once processing, ensuring data accuracy even if a failure happens mid-stream.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;&lt;STRONG&gt;Trigger Control&lt;/STRONG&gt;: In streaming, triggers manage when to process data based on data arrival, while batch jobs would require custom scheduling logic to even come close.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;So, streaming isn’t exactly &lt;STRONG&gt;“mini-batch”&lt;/STRONG&gt; — it’s purpose-built for handling unbounded data with real-time constraints.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://youtu.be/i31QggFi4mo?feature=shared&amp;amp;t=794" target="_blank"&gt;https://youtu.be/i31QggFi4mo?feature=shared&amp;amp;t=794&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 12:47:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97491#M39497</guid>
      <dc:creator>VZLA</dc:creator>
      <dc:date>2024-11-04T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: streaming vs batch, unbounded vs bound</title>
      <link>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97635#M39516</link>
      <description>&lt;P&gt;Many thanks for the clarification!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 21:13:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/streaming-vs-batch-unbounded-vs-bound/m-p/97635#M39516</guid>
      <dc:creator>jonxu</dc:creator>
      <dc:date>2024-11-04T21:13:45Z</dc:date>
    </item>
  </channel>
</rss>

