<?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 Re: Real-Time Mode in Apache Spark Structured Streaming in Community Articles</title>
    <link>https://community.databricks.com/t5/community-articles/real-time-mode-in-apache-spark-structured-streaming/m-p/133947#M720</link>
    <description>&lt;P data-start="57" data-end="125"&gt;And now in Public Preview! Thank you for writing this up,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/78842"&gt;@Yogesh_Verma_&lt;/a&gt;.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Oct 2025 12:05:34 GMT</pubDate>
    <dc:creator>Advika</dc:creator>
    <dc:date>2025-10-06T12:05:34Z</dc:date>
    <item>
      <title>Real-Time Mode in Apache Spark Structured Streaming</title>
      <link>https://community.databricks.com/t5/community-articles/real-time-mode-in-apache-spark-structured-streaming/m-p/133439#M719</link>
      <description>&lt;H1&gt;Real-Time Mode in Spark Streaming&lt;/H1&gt;&lt;P&gt;Apache Spark™ Structured Streaming has been the backbone of &lt;STRONG&gt;mission-critical pipelines&lt;/STRONG&gt; for years — from ETL to near real-time analytics and machine learning.&lt;/P&gt;&lt;P&gt;Now, Databricks has introduced something game-changing: Real-Time&lt;STRONG&gt; Mode&lt;/STRONG&gt; – a new trigger type that processes events &lt;STRONG&gt;as soon as they arrive&lt;/STRONG&gt;, with latencies in the &lt;STRONG&gt;tens of milliseconds&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;This opens the door for ultra-low-latency use cases like &lt;STRONG&gt;fraud detection, live personalization, and real-time ML feature serving&lt;/STRONG&gt;, all &lt;STRONG&gt;without rewriting your existing code&lt;/STRONG&gt;.&lt;/P&gt;&lt;H2&gt;Existing Trigger Modes in Structured Streaming&lt;/H2&gt;&lt;P&gt;Before Real-Time Mode, Spark offered three main trigger types:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Processing Time Trigger&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Trigger Once&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Available Now&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;These worked well for micro-batch processing but still introduced some delay.&lt;/P&gt;&lt;H2&gt;What is Real-Time Mode?&lt;/H2&gt;&lt;P&gt;Real-Time Mode introduces &lt;STRONG&gt;continuous, low-latency processing&lt;/STRONG&gt; in Spark Structured Streaming.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;p99 latency as low as &lt;STRONG&gt;single-digit milliseconds&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Works with the &lt;STRONG&gt;same Structured Streaming APIs&lt;/STRONG&gt; you already use&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Just a &lt;STRONG&gt;single configuration change&lt;/STRONG&gt; needed – no re-platforming&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H2&gt;&lt;STRONG&gt;Real Time mode Internal Benchmark&lt;/STRONG&gt;&lt;/H2&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yogesh_378691_1-1759318181584.png" style="width: 526px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20324i1EFCA72ECA02EB04/image-dimensions/526x293?v=v2" width="526" height="293" role="button" title="Yogesh_378691_1-1759318181584.png" alt="Yogesh_378691_1-1759318181584.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;H2&gt;Real-World Use Cases&lt;/H2&gt;&lt;P&gt;Some exciting examples where Real-Time Mode shines:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Fraud Detection (Banking):&lt;/STRONG&gt; Flag suspicious transactions from Kafka streams in under 200 &lt;SPAN&gt;milliseconds&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Personalized Retail Experiences:&lt;/STRONG&gt; Update recommendations or product offers in real time.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Travel &amp;amp; Search Apps:&lt;/STRONG&gt; Instantly update search history/session state across devices.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Food Delivery Apps:&lt;/STRONG&gt; Update ML features like driver location in milliseconds, improving ETA accuracy.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Payments Authorization (Network International):&lt;/STRONG&gt; Achieved 15 &lt;SPAN&gt;milliseconds&amp;nbsp;&lt;/SPAN&gt;latency for mission-critical payment flows&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A title="Yogesh" href="https://www.databricks.com/blog/introducing-real-time-mode-apache-sparktm-structured-streaming?utm_source=bambu&amp;amp;utm_medium=social&amp;amp;utm_campaign=advocacy" target="_self"&gt;Explore More - Real-Time Mode in Apache Spark™ Structured Streaming&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 11:37:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/real-time-mode-in-apache-spark-structured-streaming/m-p/133439#M719</guid>
      <dc:creator>Yogesh_Verma_</dc:creator>
      <dc:date>2025-10-01T11:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Real-Time Mode in Apache Spark Structured Streaming</title>
      <link>https://community.databricks.com/t5/community-articles/real-time-mode-in-apache-spark-structured-streaming/m-p/133947#M720</link>
      <description>&lt;P data-start="57" data-end="125"&gt;And now in Public Preview! Thank you for writing this up,&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/78842"&gt;@Yogesh_Verma_&lt;/a&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 12:05:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/community-articles/real-time-mode-in-apache-spark-structured-streaming/m-p/133947#M720</guid>
      <dc:creator>Advika</dc:creator>
      <dc:date>2025-10-06T12:05:34Z</dc:date>
    </item>
  </channel>
</rss>

