<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vijay Kumar on Medium]]></title>
        <description><![CDATA[Stories by Vijay Kumar on Medium]]></description>
        <link>https://medium.com/@vijay0837?source=rss-c96e2d558103------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*TyVgY840fUTkrVdD</url>
            <title>Stories by Vijay Kumar on Medium</title>
            <link>https://medium.com/@vijay0837?source=rss-c96e2d558103------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 05:35:17 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vijay0837/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[From Lakehouse to Unified Data & AI Platform: Our Exploration of Databricks Lakebase]]></title>
            <link>https://medium.com/@vijay0837/from-lakehouse-to-unified-data-ai-platform-our-exploration-of-databricks-lakebase-6edf2fa92445?source=rss-c96e2d558103------2</link>
            <guid isPermaLink="false">https://medium.com/p/6edf2fa92445</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[databricks-lakebase]]></category>
            <category><![CDATA[enterprise-architecture]]></category>
            <dc:creator><![CDATA[Vijay Kumar]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 04:19:46 GMT</pubDate>
            <atom:updated>2026-11-28T04:19:46.925Z</atom:updated>
            <content:encoded><![CDATA[<p>An architecture journey exploring how PostgreSQL-based operational serving, Unity Catalog, analytics, and agentic applications could converge within the Databricks ecosystem.</p><p>The modern data platform is evolving.</p><p>For years, organizations have invested in building lakehouses to consolidate data ingestion, transformation, governance, and analytics. The lakehouse architecture has become a strong foundation for enterprise data engineering and business intelligence.</p><p>But as applications become increasingly data-driven – and AI moves from experimentation into real-world workflows – another architectural question emerges:</p><p>Does the operational data layer also need to remain outside the lakehouse platform?</p><p>That question led us to explore Databricks Lakebase.</p><p>We weren’t looking at Lakebase simply as another PostgreSQL offering, or even just as a potential replacement for Amazon RDS. We wanted to understand whether it could help bring analytical data, operational serving, governance, and future AI-powered applications closer together.</p><p>This article shares our architecture, the motivation behind the exploration, what we evaluated, what looked promising, and the questions we still need to answer before making a production decision.</p><p>Importantly, this is an exploration – not a completed migration or a claim that every workload should move to Lakebase.</p><ol><li>Where we are today: A lakehouse with an external operational layer</li></ol><p>Our existing architecture follows a familiar pattern.</p><pre>flowchart TD<br><br>    A[&quot;AWS Source Systems&quot;] --&gt; B[&quot;AWS Lambda&quot;]<br><br>    B --&gt; C[&quot;Amazon S3&quot;]<br><br>    C --&gt; D[&quot;Databricks Auto Loader&quot;]<br><br>    D --&gt; E[&quot;Bronze&quot;]<br><br>    E --&gt; F[&quot;Silver&quot;]<br><br>    F --&gt; G[&quot;Gold&quot;]<br><br>    G --&gt; H[&quot;Metric Views&quot;]<br><br>    H --&gt; I[&quot;Databricks Genie&quot;]<br><br>    H --&gt; J[&quot;Amazon RDS - PostgreSQL&quot;]<br><br>    J --&gt; K[&quot;Power BI Reports&quot;]<br><br>    J --&gt; L[&quot;Embedded Dashboards&quot;]</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*_g0-3HLo_PXRUvxaGg4r2Q@2x.jpeg" /></figure><p>AWS is the source and landing environment, while Databricks acts as the central data engineering and analytics platform.</p><p>At a high level:</p><ul><li>AWS Lambda and Amazon S3 handle source-side processing and landing.</li><li>* Databricks Auto Loader ingests the data into the lakehouse.</li><li>* Bronze, Silver, and Gold layers provide progressive data refinement.</li><li>* Metric Views provide a governed analytical interface.</li><li>* Databricks Genie enables natural-language analytics over the governed data.</li><li>* Amazon RDS PostgreSQL serves selected data to downstream consumers.</li><li>* Power BI reports and embedded dashboards connect directly to PostgreSQL.</li></ul><p>This architecture works. It separates analytical processing from operational serving and gives downstream consumers a familiar PostgreSQL interface.</p><p>However, it also creates an additional platform boundary.</p><p>Our analytical data lives in Databricks, while a separate PostgreSQL database serves the operational consumption layer.</p><p>That boundary introduces questions around synchronization, governance, platform integration, and how we should evolve the architecture as new application and AI use cases emerge.</p><p>2. The architectural question: Should operational serving remain separate?</p><p>There is nothing inherently wrong with using Amazon RDS alongside a Databricks lakehouse.</p><p>In fact, separating analytical workloads from transactional workloads is often a sensible architectural decision.</p><p>But the separation becomes worth revisiting when the operational database primarily serves data that is already curated and governed in the lakehouse.</p><p>We started looking at a few questions:</p><ul><li>Could we reduce the architectural distance between curated lakehouse data and operational consumption?</li><li>Could synchronization become more naturally integrated with the Databricks platform?</li><li>Could governance become more consistent across analytical and operational data?</li><li>Could we retain PostgreSQL compatibility for existing applications and BI consumers?</li><li>Could the same operational layer support future AI applications that need transactional state, memory, and low-latency data access?</li></ul><p>These questions shifted the evaluation from a database replacement exercise to a broader platform architecture discussion.</p><p>The goal wasn’t simply to move PostgreSQL somewhere else. It was to explore whether operational serving could become a natural extension of the lakehouse.</p><p>3. Why Databricks Lakebase caught our attention</p><p>Lakebase introduces a PostgreSQL-based operational database capability within the Databricks ecosystem.</p><p>That combination is interesting because it brings together two capabilities that traditionally sit in different parts of an enterprise architecture:</p><ul><li>The lakehouse, where large-scale data is ingested, transformed, governed, and analyzed.</li><li>The operational database, where applications and consumers need relational access and transactional interactions.</li></ul><p>The potential architectural benefits we wanted to investigate were:</p><p>A. Bringing operational serving closer to the lakehouse</p><p>Instead of maintaining a separate operational database platform, Lakebase offers the possibility of keeping the serving layer within the broader Databricks environment.</p><p>This could simplify the architecture and reduce some of the integration boundaries between data engineering and downstream consumption.</p><p>B. Unity Catalog integration</p><p>Governance was another important consideration.</p><p>With the lakehouse already governed through Unity Catalog, having Lakebase participate in the same broader ecosystem creates an opportunity for more unified data discovery, governance, and access management.</p><p>However, it is important to distinguish platform-level integration from identical access-control behavior.</p><p>PostgreSQL roles, privileges, authentication, application identities, and row-level security still need to be designed and validated for the target environment.</p><p>C. PostgreSQL compatibility</p><p>This was particularly relevant to our existing architecture.</p><p>Our downstream consumers already connect directly to PostgreSQL.</p><p>We wanted to understand whether Lakebase could preserve that consumption pattern without introducing an entirely new application or API layer.</p><p>That matters because a platform migration should not automatically force every downstream consumer to be redesigned.</p><p>D. A foundation for AI-powered applications</p><p>This was perhaps the most forward-looking part of the evaluation.</p><p>We already use Databricks Genie as an AI analyst.</p><p>But the next generation of AI applications may require more than analytical access. They may need to maintain application state, remember interactions, read contextual information, and perform transactional updates.</p><p>A PostgreSQL-based operational layer could become an important building block for those use cases.</p><p>This doesn’t mean Lakebase automatically provides a complete agent memory or orchestration architecture. It means it gives us another capability to consider when designing one.</p><p>4. What the proposed architecture could look like</p><p>Based on our exploration, the potential target architecture looks like this:</p><p>flowchart TD</p><p>. A[“AWS Source Systems”] – &gt; B[“AWS Lambda”]</p><p>. B – &gt; C[“Amazon S3&quot;]</p><p>. C – &gt; D[“Databricks Auto Loader”]</p><p>. D – &gt; E[“Bronze”]</p><p>. E – &gt; F[“Silver”]</p><p>. F – &gt; G[“Gold”]</p><p>. G – &gt; H[“Metric Views”]</p><p>. H – &gt; I[“Databricks Genie”]</p><p>. G – &gt; J[“Databricks Lakebase – PostgreSQL”]</p><p>. H – &gt; J</p><p>. J – &gt; K[“Power BI Reports”]</p><p>. J – &gt; L[“Embedded Dashboards”]</p><p>. J – &gt; M[“Applications”]</p><p>. J – &gt; N[“Future AI Agents”]</p><p>The important change is the operational serving layer.</p><p>Instead of Amazon RDS sitting outside the Databricks environment, Lakebase becomes a candidate destination for the selected curated data required by downstream applications and consumers.</p><p>The lakehouse continues to own ingestion, transformation, and analytical processing.</p><p>Lakebase provides the PostgreSQL-based operational access layer.</p><p>Power BI and existing applications can continue to consume data through PostgreSQL connectivity, subject to compatibility and security validation.</p><p>And, over time, the same layer could support new application patterns and AI-driven interactions.</p><p>This is not about replacing the lakehouse with a database. It is about bringing analytical and operational capabilities closer together while preserving their distinct responsibilities.</p><p>5. What we evaluated</p><p>We wanted to evaluate Lakebase against our actual architecture rather than rely only on product capabilities or reference diagrams.</p><p>A few characteristics of our workload shaped the evaluation.</p><p>Area	Our current expectation</p><p>Operational data volume	Under 1 TB, including approximately 20% buffer</p><p>Retention	Current period plus the previous two years</p><p>Incremental data movement	Approximately 1 – 3 GB per sync cycle</p><p>Synchronization frequency	Every three hours</p><p>Primary consumers	Power BI reports and embedded dashboards</p><p>Connectivity	Direct PostgreSQL connectivity</p><p>Existing database	Amazon RDS PostgreSQL</p><p>Write-back requirement	Limited transactional operations, mainly user and role management</p><p>These numbers are important because they define the workload we are evaluating.</p><p>We are not trying to replicate the entire analytical lakehouse inside an operational database.</p><p>The intention is to make the relevant curated data available for operational consumption, with an appropriate retention and synchronization strategy.</p><p>A. Data synchronization</p><p>One of the key areas was understanding how lakehouse data could be made available through Lakebase.</p><p>Our current operational layer receives incremental updates from the Databricks environment.</p><p>The expected synchronization pattern is approximately every three hours, with an incremental volume in the range of 1 – 3 GB per cycle.</p><p>This made synchronization behavior an important evaluation area.</p><p>We wanted to understand how well the approach would support:</p><ul><li>Incremental data movement.</li><li>Data freshness expectations.</li><li>Operational availability during synchronization.</li><li>Recovery and handling of failures.</li><li>Consistency between curated lakehouse data and operational tables.</li></ul><p>For an architecture like this, the synchronization mechanism is not a minor implementation detail. It is part of the core data-serving design.</p><p>B. PostgreSQL connectivity and Power BI</p><p>One of the most important requirements was preserving the existing consumption model.</p><p>Power BI reports and embedded dashboards currently connect directly to Amazon RDS PostgreSQL.</p><p>We explored whether Lakebase could support a similar PostgreSQL-based connectivity pattern.</p><p>This is an important consideration because introducing a new database platform should not unnecessarily disrupt established BI consumption patterns.</p><p>Connectivity alone, however, is not enough.</p><p>We also need to validate authentication, identity propagation, role mapping, permissions, and row-level security end to end.</p><p>Our existing reporting architecture uses security context passed through the database layer. Since both sides are PostgreSQL-based, there is a promising compatibility path – but PostgreSQL compatibility should not be treated as proof that the entire security implementation transfers unchanged.</p><p>That validation remains an essential part of production readiness.</p><p>C. Transactional write-back</p><p>Another area we explored was write-back.</p><p>Our current requirement is relatively limited. It primarily involves user-management operations, such as adding users and changing roles.</p><p>These are transactional operations rather than analytical updates to the Gold layer.</p><p>We wanted to establish whether Lakebase could support this kind of application interaction alongside its role as an operational serving layer.</p><p>This distinction matters.</p><p>The objective is not to turn the lakehouse into a transactional application database. It is to use the appropriate operational database capability for application-owned transactional data while keeping analytical transformations in the lakehouse.</p><p>For a production design, application-owned writable tables should also be clearly separated from read-only representations of synchronized lakehouse tables.</p><p>6. What looks promising so far</p><p>Our exploration has made Lakebase a strong contender for the architecture.</p><p>A few aspects stand out.</p><p>First, the platform boundary could become smaller.</p><p>Today, Databricks and Amazon RDS are separate platform components that need to work together. Bringing the operational layer closer to Databricks could simplify parts of the integration and operating model.</p><p>Second, PostgreSQL compatibility gives us a practical migration path to investigate.</p><p>We don’t necessarily need to redesign every downstream consumer just to explore a different operational database platform.</p><p>Third, the governance story is compelling.</p><p>Having analytical and operational data capabilities within the same ecosystem creates an opportunity to make data governance and discovery more consistent.</p><p>Fourth, it creates more options for future application architectures.</p><p>The same operational layer that serves dashboards and applications today could potentially support transactional interactions from future AI-powered applications.</p><p>These are meaningful architectural benefits, but they still need to be evaluated against the real workload, not just the conceptual architecture.</p><p>7. The cost question: An important part of the decision</p><p>No architecture decision is complete without understanding its economics.</p><p>We have considered cost as part of the evaluation, but the analysis is not yet comprehensive enough to make a confident claim that Lakebase will be cheaper than our existing RDS setup.</p><p>And I don’t think that should be the only measure of success.</p><p>A meaningful comparison needs to consider the complete operating model:</p><ul><li>Database compute and storage.</li><li>Availability and scaling requirements.</li><li>Backup, recovery, and point-in-time recovery.</li><li>Data synchronization and associated compute.</li><li>Network and data-transfer considerations.</li><li>Monitoring, administration, and operational overhead.</li><li>Development and migration effort.</li></ul><p>There is also a distinction between the cost of running a database and the total cost of maintaining an architecture.</p><p>If a platform reduces integration complexity and operational overhead, that may create value beyond the database bill itself.</p><p>But those benefits should be measured rather than assumed.</p><p>For us, total cost of ownership remains an open question – not a conclusion already reached.</p><p>8. The bigger opportunity: Preparing for agentic applications</p><p>This is where the discussion becomes more interesting.</p><p>We already have Databricks Genie supporting analytical interactions.</p><p>But analytical AI and agentic applications are not the same thing.</p><p>An AI analyst primarily needs governed access to data and the ability to answer questions.</p><p>An application-oriented AI agent may need additional capabilities:</p><ul><li>Persistent interaction state.</li><li>User and session context.</li><li>Short-term and long-term memory patterns.</li><li>Transactional reads and writes.</li><li>Application-specific data.</li><li>Reliable access to operational information.</li></ul><p>These requirements bring us back to the importance of an operational data layer.</p><p>A PostgreSQL-based service such as Lakebase could potentially support some of these requirements, particularly where relational access and transactional behavior are needed.</p><p>Imagine an agent that doesn’t just answer a question about a business transaction, but can also maintain its workflow state, retrieve relevant application context, and initiate an authorized transactional action.</p><p>The architecture would still need appropriate orchestration, identity, authorization, auditability, and safeguards.</p><p>But the opportunity is worth considering.</p><p>This is why we see Lakebase as potentially more than a database replacement. It could become one of the building blocks in a broader Data and AI platform.</p><p>9. What still needs to be validated?</p><p>We should be careful not to confuse a promising evaluation with a production-ready migration decision.</p><p>There are several areas that deserve deeper validation.</p><p>Area	What we need to establish</p><p>Performance	Query latency and concurrency under actual Power BI and application workloads</p><p>Synchronization	Behavior under incremental loads, failures, and recovery</p><p>Security	Authentication, identity propagation, PostgreSQL roles, and RLS</p><p>Availability	Production availability, recovery objectives, and operational resilience</p><p>Workload fit	Suitability for our read-heavy serving and limited transactional requirements</p><p>Cost	End-to-end TCO compared with the current RDS architecture</p><p>Migration	Cutover strategy, rollback, compatibility, and downstream impact</p><p>One particularly important consideration is that the operational database should not become an accidental second analytical warehouse.</p><p>The lakehouse should continue to own large-scale transformation and analytical processing. Lakebase should serve the workloads for which an operational PostgreSQL layer makes sense.</p><p>The boundary between those responsibilities needs to remain deliberate.</p><p>10. Our current architectural direction</p><p>So, where do we stand?</p><p>After exploring the capabilities and considering our existing workload, Databricks Lakebase looks like a very strong contender for replacing our external Amazon RDS PostgreSQL serving layer.</p><p>The attraction is not simply that it offers PostgreSQL.</p><p>It is the possibility of bringing operational serving closer to the lakehouse, creating a more integrated governance and operating model, preserving familiar consumption patterns, and preparing the platform for future AI-driven applications.</p><p>We are still discussing the migration decision. We have not completed a production migration, and there are important questions around security validation, workload performance, resilience, and total cost of ownership that need to be answered.</p><p>But the architectural direction is becoming clearer.</p><p>We are no longer looking at the lakehouse only as a platform for storing and analyzing data. We are exploring how it can become the foundation for a broader Data and AI platform – one that supports analytics, operational applications, and eventually agentic experiences.</p><p>And Lakebase could be an important part of that evolution.</p><p>A question for the Databricks and data architecture community</p><p>I’d be interested in hearing from teams that have already evaluated or adopted Lakebase in production.</p><p>A few questions I’d particularly like to explore:</p><ul><li>How are you handling synchronization between Unity Catalog-managed lakehouse tables and Lakebase in production?</li><li>What patterns are you using for PostgreSQL security, identity propagation, and row-level security when serving Power BI or other BI tools?</li><li>How does Lakebase perform under concurrent BI and application workloads?</li><li>Have you used Lakebase for application write-back or agent state and memory?</li><li>How does its overall TCO compare with a separately managed PostgreSQL service such as Amazon RDS or Aurora for comparable workloads?</li></ul><p>I’d especially value insights from teams that have moved an existing PostgreSQL serving layer into Lakebase rather than starting with a greenfield application.</p><p>The most useful architecture decisions are often shaped by what we learn from people who have already taken the journey.</p><p>#Databricks #Lakebase #DataArchitecture #Lakehouse #PostgreSQL #UnityCatalog #DataEngineering #AIEngineering #AgenticAI</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6edf2fa92445" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Lakeflow Declarative Pipelines (DLT) vs.]]></title>
            <link>https://medium.com/@vijay0837/lakeflow-declarative-pipelines-dlt-vs-ee879a347337?source=rss-c96e2d558103------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee879a347337</guid>
            <category><![CDATA[databricks-lakeflow]]></category>
            <category><![CDATA[declarative-pipeline]]></category>
            <category><![CDATA[data-architect]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Vijay Kumar]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 09:06:15 GMT</pubDate>
            <atom:updated>2026-11-27T09:06:15.294Z</atom:updated>
            <content:encoded><![CDATA[<h3>Lakeflow Declarative Pipelines (DLT) vs. Databricks Workflows: Choosing the Right Engine on the Same Platform</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G4VhDZ-7Uca7k5sUfQB_rg.png" /></figure><p>One of the biggest strengths of the Databricks Data Intelligence Platform is that you are never locked into a single execution paradigm. Whether your team wants a declarative, near-zero-boilerplate pipeline engine or fine-grained programmatic orchestration, Databricks gives you two first-class pillars — <strong>Lakeflow Declarative Pipelines (formerly Delta Live Tables / DLT)</strong> and <strong>Databricks Workflows (Lakeflow Jobs)</strong> — both backed by the exact same <strong>Serverless compute, Delta Lake storage, and Unity Catalog governance</strong>.</p><p>Yet in real-world enterprise architectures, one of the most common questions I get as a Solution Architect is:</p><blockquote>“Should we build this in Lakeflow Declarative Pipelines (DLT), or orchestrate a custom framework on Databricks Workflows?”</blockquote><p>Recently, our team implemented a complex enterprise ingestion and curation platform that started out on DLT — and deliberately pivoted to a metadata-driven framework orchestrated by Databricks Workflows. Making that call taught us a great deal about where DLT shines as an absolute powerhouse, where complex enterprise edge cases push past declarative boundaries, and why staying native to Databricks meant we never lost Serverless agility or governance when we switched gears.</p><h3>Pillar 1: Why Lakeflow Declarative Pipelines (DLT) Is a Data Engineering Powerhouse</h3><p>Before diving into why we pivoted for one specific workload, let’s be clear: <strong>for the vast majority of modern data engineering pipelines, Lakeflow Declarative Pipelines (DLT) is the fastest, cleanest way to get into production.</strong></p><p>When your architecture aligns with declarative principles, DLT eliminates massive amounts of operational boilerplate:</p><ul><li><strong>Near-Zero Orchestration Code:</strong> You define <em>what</em> the target tables and transformations should look like in SQL or Python — DLT automatically infers the dependency DAG, execution order, and parallelization without manual task wiring.</li><li><strong>Unified Streaming and Batch Semantics:</strong> Switching between continuous streaming ingestion (via Auto Loader) and scheduled micro-batch or full refreshes uses the same declarative constructs, dramatically reducing code duplication.</li><li><strong>Built-In Auto-Restart and Self-Healing:</strong> Transient infrastructure hiccups, checkpoint recoveries, and retries are managed automatically by the pipeline runtime without custom wrapper scripts.</li><li><strong>End-to-End Change Propagation &amp; Lineage:</strong> Schema evolution, upstream dependency tracking, and Unity Catalog column-level lineage are native out of the box — changes propagate cleanly downstream with full observability.</li><li><strong>Declarative Quality Gates (Expectations):</strong> Built-in EXPECT rules let you enforce data quality contracts inline—choosing whether to warn, drop invalid rows, fail the pipeline, or route bad records to a quarantine table with zero custom validation plumbing.</li></ul><p>If you are building greenfield pipelines, standardizing Medallion transformations, or enabling smaller teams to ship reliable data products rapidly, DLT is unmatched in developer velocity.</p><h3>Pillar 2: When Enterprise Reality Calls for Workflows + Custom Frameworks</h3><p>In our recent implementation, we initially designed the solution around DLT to take advantage of its declarative speed. However, as we mapped complex legacy and operational requirements onto the pipeline, six architectural friction points emerged that pushed us toward <strong>Databricks Workflows + a custom metadata-driven framework</strong>:</p><h3>1. Brownfield Hybrid Friction (Non-DLT Bronze &amp; Silver)</h3><p>Our upstream Bronze and Silver layers were already established on standard non-DLT Delta pipelines with existing operational SLAs and custom audit metadata. Bridging non-DLT upstream tables into a strict declarative lifecycle created an awkward hybrid boundary — forcing synchronization workarounds rather than seamless end-to-end declarative flow.</p><h3>2. Multi-Pipeline Shared Targets</h3><p>Our target domain tables were not owned by a single linear pipeline; multiple independent ingestion and enrichment pipelines needed to write, merge, and update into the <strong>same shared target tables</strong> asynchronously. Declarative pipelines work best when a single pipeline owns the lifecycle of its target tables — sharing write ownership across independent DLT pipelines introduced coordination constraints.</p><h3>3. Intermediate Materialized Views &amp; Storage Surplus</h3><p>To satisfy complex multi-stage business rules and conditional joins inside a declarative DAG, we were forced to materialize multiple intermediate views holding overlapping slices of the same dataset. At enterprise scale, those extra intermediate materializations created unnecessary storage surplus and redundant compute overhead.</p><h3>4. Active Quarantine, Auto-Remediation, and Reprocessing</h3><p>DLT Expectations are fantastic for <em>detecting</em> bad records and routing them to a quarantine sink. However, our domain required an <strong>active, stateful quarantine lifecycle</strong>:</p><ul><li>Tiered <strong>soft vs. hard quarantine rules</strong> driven by external business metadata</li><li><strong>Automated rule-based correction (self-healing)</strong> that repairs known transient or formatting anomalies without human intervention</li><li><strong>Automated replay and reprocessing</strong> of corrected records back into the main curation flow with full auditability</li></ul><p>Building a closed-loop <em>quarantine → auto-correct → reprocess</em> state machine went well beyond passive declarative expectations.</p><h3>5. Multi-History and Selective Backfill Control</h3><p>Enterprise regulatory and business reporting required maintaining multiple historical snapshots alongside targeted, slice-level historical backfills (e.g., reprocessing specific business dates or partner partitions without triggering full-table recomputations or disrupting live incremental streams).</p><h3>6. Explicit Hold-and-Release State Control</h3><p>Downstream consumers required deterministic control over <strong>what data to hold vs. what to release</strong> based on external batch readiness signals and cross-system completeness checks — something much easier to express in an imperative, state-aware workflow than in a continuously propagating declarative graph.</p><h3>Architectural Decision Matrix: DLT vs. Workflows + Custom Framework</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PndDoJD9J0JJr45uQPM_8w.png" /></figure><h3>The Architect’s Takeaway: You Never Leave the Databricks Advantage Behind</h3><p>Moving this specific workload off DLT didn’t mean abandoning Databricks best practices — it meant <strong>choosing the right Databricks primitive for the architectural boundary</strong>.</p><p>Because everything runs on the unified <strong>Databricks Data Intelligence Platform</strong>, our custom framework on <strong>Databricks Workflows</strong> still leveraged the exact same foundational capabilities:</p><ul><li><strong>Serverless Compute for Workflows:</strong> Instant startup, automatic autoscaling, and zero cluster-management overhead — giving our custom PySpark/SQL tasks the same operational simplicity we loved in DLT.</li><li><strong>Delta Lake &amp; Liquid Clustering:</strong> High-concurrency MERGE operations into shared target tables without locking bottlenecks or manual file compaction headaches.</li><li><strong>Unity Catalog Governance:</strong> Unified access controls, automated lineage capture across custom tasks, and centralized auditing regardless of whether a table was produced by DLT or Workflows.</li></ul><p>Great architecture isn’t about forcing every problem into a single tool — it’s about knowing where declarative simplicity ends and imperative control begins. With Databricks giving you <strong>both</strong> Lakeflow Declarative Pipelines and Serverless Workflows under one governed roof, you never have to compromise between developer speed and enterprise control.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee879a347337" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Reactive Firefights to Autonomous Triage: Why Databricks Genie ZeroOps Changes Data Operations]]></title>
            <link>https://medium.com/@vijay0837/from-reactive-firefights-to-autonomous-triage-why-databricks-genie-zeroops-changes-data-operations-8e2bc64cc7e5?source=rss-c96e2d558103------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e2bc64cc7e5</guid>
            <category><![CDATA[databricks-news]]></category>
            <category><![CDATA[databricks-data-engineer]]></category>
            <category><![CDATA[azure-databricks]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[databricks-jobs]]></category>
            <dc:creator><![CDATA[Vijay Kumar]]></dc:creator>
            <pubDate>Wed, 25 Nov 2026 14:26:34 GMT</pubDate>
            <atom:updated>2026-11-25T14:26:34.991Z</atom:updated>
            <content:encoded><![CDATA[<p>Trained on insights from over 80,000 real customer pipeline issues, Databricks’ new public beta agent moves data engineering from manual alert chasing to guided, one-click pull requests – with Unity Catalog governance built in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*9bfevQZ6ttyIS0cnF557Fg@2x.jpeg" /></figure><p>Every data engineering team knows the 2:00 AM alert drill. A downstream dashboard goes stale or an upstream schema shifts silently, and suddenly an engineer is stitching together driver logs, Git commit histories, Unity Catalog lineage graphs, and table freshness metrics just to figure out what broke – before even writing a single line of fix code.</p><p>Building pipelines on Databricks has become dramatically faster over the past few years, yet day-two operations – triage, root-cause investigation, and verification – still consume a disproportionate share of senior engineering hours.</p><p>With Genie ZeroOps now in Public Beta, Databricks is tackling that operational bottleneck head-on. Shaped by observations across more than 80,000 real customer pipeline issues, Genie ZeroOps is an always-on background agent that continuously monitors jobs, pipelines, and tables, diagnoses root causes automatically without waiting for a prompt, and prepares human-approved pull requests.</p><h3>How Genie ZeroOps Closes the Triage Loop</h3><p>Unlike reactive chat assistants that wait for you to paste an error stack trace, Genie ZeroOps triggers automatically the moment an incident occurs – so the investigation is already waiting in your inbox before an on-call engineer even opens their laptop:</p><ol><li>Detect (Hard Failures + Silent Data Quality Issues): Continuously monitors Databricks jobs, pipelines, and tables – catching both explicit task failures and silent freshness or completeness anomalies via Data Quality Monitoring (such as late commits or unexpected row-count drops).</li><li>Investigate With Full Lakehouse Context: Automatically correlates run logs, source code, Delta history, and Unity Catalog lineage – even running diagnostic SQL queries to pinpoint upstream root causes and rank issues by downstream impact.</li><li>Verify Before Suggesting: Tests proposed fixes using unit tests and dry runs in a sandbox environment to validate hypotheses rather than guessing.</li><li>Notify Where Your Team Already Works: Sends concise issue summaries and recommended fixes directly to Slack, Microsoft Teams, or PagerDuty, filtering out low-priority noise.</li><li>Remediate With One-Click Pull Requests: For Git-backed jobs and pipelines, prepares a code fix on a new branch with pre-populated PR details – never modifying production code or data without explicit human review.</li></ol><h3>What Makes the Public Beta Practical for Real Teams</h3><p>During its private preview, Databricks identified a critical truth about data operations: a generic AI agent doesn’t know your team’s tribal knowledge – which third-party API is chronically flaky on Mondays, what your table naming conventions look like, or which warnings are safe to ignore.</p><p>The Public Beta directly solves this with four production-focused capabilities:</p><ul><li>Custom Agent Instructions: Steer ZeroOps with your team’s operational rules, known flaky sources, and preferred remediation patterns so recommendations match how your organization actually runs pipelines.</li><li>Shared Team Inboxes: Pipeline reliability is a team sport. Shared inboxes keep the entire on-call rotation aligned on active incidents without duplicate investigations or handoff gaps.</li><li>Native Unity Catalog Governance &amp; PII Redaction: ZeroOps runs on models hosted inside the Databricks security perimeter, strictly respects existing Unity Catalog permissions, and automatically redacts PII before any alert leaves Databricks.</li><li>Zero Production Risk by Design: ZeroOps never pushes unreviewed edits to production – every fix lands on a separate Git branch for standard pull request review and CI checks.</li></ul><h3>How to Pilot Genie ZeroOps in Your Workspace Today</h3><p>If you want to test Genie ZeroOps on a real workload this week, keep the rollout focused and measurable:</p><ol><li>Enable the Preview: Have a workspace admin toggle on Genie ZeroOps from the workspace Previews page, then look for the ZeroOps banner at the top of the Pipelines page.</li><li>Start With High-Signal Assets: Point it at a core set of critical jobs and Unity Catalog tables (with Data Quality Monitoring enabled on key tables so it can catch silent freshness and completeness issues).</li><li>Add Custom Instructions Early: Document your known upstream quirks and branch-protection rules on day one so the agent’s triage signal stays sharp.</li></ol><p>By combining Unity Catalog lineage, automated sandbox verification, and human-in-the-loop Git pull requests, Genie ZeroOps turns incident response from a stressful blank-screen investigation into a fast, governed review workflow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e2bc64cc7e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Death of the foreachBatch JDBC Boilerplate: Migrating to the Native Databricks Lakebase Streaming…]]></title>
            <link>https://medium.com/@vijay0837/death-of-the-foreachbatch-jdbc-boilerplate-migrating-to-the-native-databricks-lakebase-streaming-d28416ea384f?source=rss-c96e2d558103------2</link>
            <guid isPermaLink="false">https://medium.com/p/d28416ea384f</guid>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[databricks-migration]]></category>
            <category><![CDATA[databricks-news]]></category>
            <category><![CDATA[databricks-lakebase]]></category>
            <category><![CDATA[databricks-community]]></category>
            <dc:creator><![CDATA[Vijay Kumar]]></dc:creator>
            <pubDate>Tue, 24 Nov 2026 13:37:46 GMT</pubDate>
            <atom:updated>2026-11-24T13:37:46.053Z</atom:updated>
            <content:encoded><![CDATA[<h2>Death of the foreachBatch JDBC Boilerplate: Migrating to the Native Databricks Lakebase Streaming Sink</h2><p>How Databricks Runtime 18 LTS+ and 19+ replace 50+ lines of fragile PostgreSQL upsert glue code with a declarative .writeStream call – and the production edge cases you still need to watch.</p><p>(Insert Image 1: Architecture Comparison Diagram here)</p><p>If you have ever synced a Spark Structured Streaming pipeline into an operational PostgreSQL database, you know the pain of the foreachBatch tax.</p><p>Analytical pipelines thrive in Delta Lake, while low-latency applications, online feature stores, and operational dashboards demand transactional Postgres (Databricks Lakebase). For years, bridging those two worlds meant maintaining 50+ lines of fragile glue code per pipeline:</p><p>Bullet Opening JDBC or psycopg connections inside partition iterators</p><p>Bullet Managing OAuth token refreshes or secret-scope credentials</p><p>Bullet Sorting and deduplicating keys inside every micro-batch so Postgres wouldn’t throw ON CONFLICT DO UPDATE command cannot affect row a second time</p><p>Bullet Hand-writing conditional SQL so older retries wouldn’t overwrite newer events</p><p>With the native Databricks Lakebase Structured Streaming sink now Generally Available, that custom connector boilerplate is obsolete.</p><p>Before vs. After: Retiring the Glue Code</p><p>Previously, a production-safe upsert into Postgres required manual batch deduplication, connection lifecycle management, and raw INSERT … ON CONFLICT SQL inside foreachBatch:</p><pre># BEFORE: Custom foreachBatch + JDBC/psycopg boilerplate<br>def upsert_to_postgres(batch_df, batch_id):<br>    if batch_df.isEmpty():<br>        return<br><br>    # 1. Deduplicate within micro-batch to prevent Postgres ON CONFLICT cardinality errors<br>    deduped_df = (<br>        batch_df.orderBy(F.col(&quot;event_ts&quot;).desc())<br>        .dropDuplicates([&quot;user_id&quot;])<br>    )<br><br>    # 2. Manually manage connections, OAuth token refresh, retries, and SQL generation<br>    def write_partition(rows):<br>        conn = get_pg_connection_with_oauth_refresh()<br>        with conn.cursor() as cur:<br>            sql = &quot;&quot;&quot;<br>                INSERT INTO app.user_state (user_id, status, event_ts)<br>                VALUES (%s, %s, %s)<br>                ON CONFLICT (user_id) DO UPDATE SET<br>                    status = EXCLUDED.status,<br>                    event_ts = EXCLUDED.event_ts<br>                WHERE EXCLUDED.event_ts &gt; app.user_state.event_ts;<br>            &quot;&quot;&quot;<br>            cur.executemany(sql, [(r.user_id, r.status, r.event_ts) for r in rows])<br>        conn.commit()<br>        conn.close()<br><br>    deduped_df.foreachPartition(write_partition)<br></pre><p>With the native Lakebase sink (DBR 18 LTS+ for primary-key upserts; DBR 19+ for merge strategies and mergeSchema), the entire pipeline collapses into a declarative .writeStream configuration:</p><pre># AFTER: Native Lakebase Structured Streaming Sink (DBR 19+)<br>(<br>    events_df.writeStream<br>    .outputMode(&quot;update&quot;)<br>    .option(&quot;upsertkey&quot;, &quot;user_id&quot;)<br>    .option(&quot;mergeStrategy&quot;, &quot;latestBy(event_ts)&quot;)<br>    .option(&quot;mergeSchema&quot;, &quot;true&quot;)<br>    .option(&quot;checkpointLocation&quot;, &quot;/Volumes/main/app/_checkpoints/user_state&quot;)<br>    .toTable(&quot;main.app.user_state&quot;)<br>)<br></pre><p>Authentication runs natively using the query runner’s workspace identity (user or service principal), and batching, backpressure, and transient retries are handled out of the box.</p><p>Side-by-Side Comparison</p><p>Bullet Authentication: Custom foreachBatch requires manual OAuth token refreshes or static Postgres roles stored in Secret Scopes. The native sink authenticates automatically via workspace-managed identity.</p><p>Bullet Idempotency &amp; Upserts: Custom writers require manual ON CONFLICT SQL and intra-batch deduplication. The native sink uses upsertkey (or infers it from the target table’s PRIMARY KEY).</p><p>Bullet Out-of-Order Events: Custom writers rely on hand-coded WHERE excluded.ts &gt; target.ts predicates. DBR 19+ provides built-in latestBy(event_timestamp) and column-level merge strategies.</p><p>Bullet Schema Evolution: Custom writers require Python pre-hooks issuing ALTER TABLE ADD COLUMN. DBR 19+ supports .option(“mergeSchema”, “true”).</p><p>Two Production Edge Cases to Watch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*YVP8ngsnDxpTmkMz1F5R_g@2x.jpeg" /></figure><p>1. Out-of-Order Events &amp; Primary-Key Constraints</p><p>For upserts to work, your target Lakebase table must have a PRIMARY KEY constraint matching the columns specified in upsertkey (or let the sink auto-create the table on Unity Catalog). If the target table lacks a primary key, the sink falls back to pure INSERTs regardless of your stream’s output mode.</p><p>When duplicate keys arrive in the same micro-batch – or an older event arrives late – pairing upsertkey with latestBy(event_timestamp) in DBR 19+ ensures PostgreSQL conflict resolution compares timestamps deterministically so stale retries never clobber fresh state.</p><p>2. The mergeSchema Query-Initialization Catch</p><ul><li>Setting .option(“mergeSchema”, “true”) in DBR 19+ automatically appends new nullable top-level columns to your Lakebase table, backfilling existing rows with NULL.</li><li>The operational catch: Unlike Delta Lake Auto Loader, the Lakebase sink checks for schema changes when the streaming query initializes, not dynamically at every micro-batch boundary. When an upstream producer adds a new column:</li></ul><p>1. Update your upstream DataFrame schema.</p><p>2. Restart the streaming query with .option(“mergeSchema”, “true”) enabled.</p><p>3. Verify that the database identity running the stream has ALTER TABLE privileges on the target Lakebase table.</p><p>Note that mergeSchema only handles additive top-level columns – nested struct evolution, column drops, and type widening still require stopping the stream and running manual DDL.</p><ol><li>Compute &amp; Trigger Support Matrix</li><li>Before migrating existing jobs, check your compute and orchestration setup:</li><li>Bullet Classic Compute (Dedicated/Standard): Supports ProcessingTime micro-batches as well as ultra-low-latency Real-Time Mode (trigger(realTime=…)).</li><li>Bullet Serverless Compute: Supported via trigger(availableNow=True) for incremental batch-style streaming jobs.</li><li>Bullet Lakeflow Declarative Pipelines (DLT): Not currently supported – keep Lakebase streaming sinks in standalone Structured Streaming jobs.</li></ol><p>When Should You Still Keep foreachBatch?</p><p>While the native sink eliminates almost every standard operational sync pattern, keep foreachBatch in your toolkit for three scenarios:</p><p>1. Workspaces pinned below DBR 18 LTS.</p><p>2. Multi-sink fan-out where you need custom cross-table orchestration per micro-batch.</p><p>3. Custom Dead-Letter Queue (DLQ) routing for malformed records before writing to Postgres.</p><p>For everything else, retiring your JDBC foreachBatch wrappers in favor of native .toTable() cuts maintenance overhead immediately while making your operational syncs faster and easier to govern under Unity Catalog.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d28416ea384f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>