<?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 Best practices for processing HVR CDC data in Databricks when handling out-of-order updates, delete in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/best-practices-for-processing-hvr-cdc-data-in-databricks-when/m-p/174820#M56912</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi Databricks Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am working on a data lakehouse architecture on AWS, where HVR captures changes from OLTP databases such as Oracle and PostgreSQL, AWS S3 is used for storage, and Databricks handles data processing across Bronze, Silver, and Gold layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need to maintain accurate downstream Delta tables while processing inserts, updates, and deletes from source systems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to understand the recommended architectural approach for the following scenarios:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Out-of-order events:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; If multiple updates for the same primary key arrive out of order, how can we ensure that an older event does not overwrite the latest record?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Duplicate events and retries:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; How should we handle duplicate CDC records or replayed files without creating inconsistent target data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Delete propagation:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; What is the recommended approach to propagate source deletes from Bronze to Silver and Gold while retaining audit history where required?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Incremental processing:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Would you recommend implementing custom Delta MERGE logic or using Lakeflow Declarative Pipelines AUTO CDC APIs for this type of architecture?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Performance:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; What are the best practices for handling high-volume CDC data, small files, and frequent MERGE operations on Delta tables stored in S3?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Our current architecture uses HVR for source ingestion and Databricks for downstream processing. I am particularly interested in a production-ready solution that balances data correctness, performance, maintainability, and cost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone has implemented a similar architecture, I would appreciate suggestions, design patterns, or code examples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2026 05:24:30 GMT</pubDate>
    <dc:creator>krishgarikipati</dc:creator>
    <dc:date>2026-10-28T05:24:30Z</dc:date>
    <item>
      <title>Best practices for processing HVR CDC data in Databricks when handling out-of-order updates, delete</title>
      <link>https://community.databricks.com/t5/data-engineering/best-practices-for-processing-hvr-cdc-data-in-databricks-when/m-p/174820#M56912</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Databricks Community,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am working on a data lakehouse architecture on AWS, where HVR captures changes from OLTP databases such as Oracle and PostgreSQL, AWS S3 is used for storage, and Databricks handles data processing across Bronze, Silver, and Gold layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;We need to maintain accurate downstream Delta tables while processing inserts, updates, and deletes from source systems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to understand the recommended architectural approach for the following scenarios:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Out-of-order events:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; If multiple updates for the same primary key arrive out of order, how can we ensure that an older event does not overwrite the latest record?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Duplicate events and retries:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; How should we handle duplicate CDC records or replayed files without creating inconsistent target data?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Delete propagation:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; What is the recommended approach to propagate source deletes from Bronze to Silver and Gold while retaining audit history where required?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Incremental processing:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; Would you recommend implementing custom Delta MERGE logic or using Lakeflow Declarative Pipelines AUTO CDC APIs for this type of architecture?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Performance:&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; What are the best practices for handling high-volume CDC data, small files, and frequent MERGE operations on Delta tables stored in S3?&lt;/SPAN&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;Our current architecture uses HVR for source ingestion and Databricks for downstream processing. I am particularly interested in a production-ready solution that balances data correctness, performance, maintainability, and cost.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If anyone has implemented a similar architecture, I would appreciate suggestions, design patterns, or code examples.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2026 05:24:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/best-practices-for-processing-hvr-cdc-data-in-databricks-when/m-p/174820#M56912</guid>
      <dc:creator>krishgarikipati</dc:creator>
      <dc:date>2026-10-28T05:24:30Z</dc:date>
    </item>
  </channel>
</rss>

