<?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 Estuary on Medium]]></title>
        <description><![CDATA[Stories by Estuary on Medium]]></description>
        <link>https://medium.com/@estuarydata?source=rss-d13f8e5da6ab------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TOd3xG0I3U3-U1IHsOy10g.png</url>
            <title>Stories by Estuary on Medium</title>
            <link>https://medium.com/@estuarydata?source=rss-d13f8e5da6ab------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 14:50:43 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@estuarydata/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[The Hidden Costs of Real-Time Data Pipelines: What Vendor Pricing Pages Don’t Show]]></title>
            <link>https://medium.com/@estuarydata/the-hidden-costs-of-real-time-data-pipelines-what-vendor-pricing-pages-dont-show-138de94d8260?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/138de94d8260</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[data-integration]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Mon, 26 Oct 2026 08:07:34 GMT</pubDate>
            <atom:updated>2026-10-26T08:07:34.675Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A low ingestion price doesn’t always mean a low data pipeline cost. Here’s what to calculate before choosing a solution.</strong></p><figure><img alt="Hidden costs of real-time data pipelines, including processing and infrastructure" src="https://cdn-images-1.medium.com/max/1024/1*_riM-sldN89VOvh6EediFA.png" /></figure><p>Two data integration tools can advertise similar prices and still produce very different monthly bills.</p><p>One might charge by the gigabyte. Another counts how many unique rows changed. A third charges for compute capacity, even when little data is moving.</p><p>And that’s before accounting for your data warehouse, initial backfills, network traffic, or the engineering time spent keeping everything running.</p><p>The result? The cheapest tool on a pricing page isn’t necessarily the cheapest pipeline to operate.</p><p>We recently modeled real-time data ingestion costs across Estuary, Fivetran, Airbyte, Hevo, and self-managed infrastructure using three different workloads. The findings highlighted several expenses that are easy to miss when comparing vendor prices.</p><p>Here are five that deserve more attention.</p><h3>1. Your Data Warehouse Can Cost More Than Your Ingestion Tool</h3><p>Moving data into a warehouse is only part of the expense.</p><p>Once the data arrives, the warehouse may need to load files, execute MERGE statements, update tables, or run compute resources to make those changes available.</p><p>The frequency of those operations matters.</p><p>A dashboard that can tolerate hourly updates may require significantly less destination processing than one that needs fresh data every few seconds.</p><p>Consider two pipelines moving exactly the same amount of change data. One applies changes hourly; the other applies them every minute.</p><p>The ingestion volume may be identical, but the second pipeline can trigger substantially more destination processing.</p><p>This is why comparing ingestion service fees alone can be misleading.</p><p><strong>The question to ask:</strong> How much will my destination cost at the freshness level I actually need?</p><h3>2. The Number of Updated Rows Matters as Much as Data Volume</h3><p>Not all data integration vendors measure usage the same way.</p><p>Some charge for the amount of data processed. Others charge based on monthly active rows (MAR), which generally counts distinct row keys that change during a billing period, subject to the vendor’s billing rules.</p><p>Consider two hypothetical workloads:</p><ul><li>Workload A inserts 10,000 new rows.</li><li>Workload B updates the same row 10,000 times.</li></ul><p>Both generate 10,000 change events.</p><p>But Workload A changes 10,000 distinct keys, while Workload B changes just one.</p><p>Under a per-GB pricing model, the relevant factor is the amount of billable data generated by those changes.</p><p>Under MAR pricing, repeatedly updating the same row may be substantially cheaper than inserting thousands of distinct records.</p><p>Neither model is always better.</p><p>Append-heavy workloads and high-churn operational databases can have very different cost profiles, even at similar data volumes.</p><p><strong>The question to ask:</strong> How many distinct records change each month, and how frequently does each record change?</p><h3>3. Adding Another Destination Is Rarely Free</h3><p>A common architecture starts with one source database and one data warehouse.</p><p>Later, the business needs the same data in another system.</p><p>Maybe Snowflake powers analytics, ClickHouse serves real-time dashboards, and another destination supports operational applications.</p><p>The engineering requirement sounds simple: send the same changes to three places instead of one.</p><p>But the billing implications depend on the architecture and pricing model.</p><p>Some services meter each source-to-destination connection separately. Others charge for additional delivery volume or connector instances.</p><p>A system that captures data once and fans it out to several destinations can reduce duplicated capture work, but it does not necessarily eliminate additional delivery charges.</p><p>Our modeled comparison showed that destination count can materially change which pricing model is most economical.</p><p><strong>The question to ask:</strong> What happens to the bill when I add a second or third destination?</p><h3>4. Initial Backfills and Re-Syncs Can Create Unexpected Charges</h3><p>Most data pipelines begin by loading historical data.</p><p>That initial backfill might include hundreds of gigabytes, or even terabytes, before the pipeline starts processing incremental changes.</p><p>The question is whether that initial load is included, discounted, or billed as ordinary usage.</p><p>Pricing policies vary across vendors.</p><p>The same issue can arise later when a destination must be rebuilt, a schema changes, or historical data needs to be replayed.</p><p>For example, a pipeline that normally processes 50 GB of changes every month might need to reload several hundred gigabytes during a one-time operation.</p><p>That one event can produce a bill very different from the normal monthly estimate.</p><p>And retries, backfills, and replays do not necessarily follow the same billing rules.</p><p><strong>The question to ask:</strong> Which initial loads, historical replays, and recovery operations are billable?</p><h3>5. Self-Managed Pipelines Still Have a People Cost</h3><p>Running an open-source CDC stack can look inexpensive when you compare infrastructure costs with managed vendor fees.</p><p>But infrastructure is only one component.</p><p>Someone still needs to manage connectors, replication failures, schema changes, upgrades, monitoring, and incident response.</p><p>Our comparison modeled self-managed infrastructure costing roughly $641 to $1,211 per month across the three workloads.</p><p>That doesn’t include the full engineering cost.</p><p>Using the loaded engineering rate in our model, every additional 10 hours of monthly maintenance adds approximately $954.</p><p>That makes a significant difference when comparing a managed pipeline with a self-hosted architecture.</p><p>Open-source software may eliminate license costs. It doesn’t eliminate operational responsibility.</p><p><strong>The question to ask:</strong> How many engineering hours will this pipeline require each month, including maintenance and recovery?</p><h3>Better Way to Compare Data Pipeline Costs</h3><p>Instead of comparing vendors based only on advertised rates, calculate the total cost of a specific workload.</p><p>Start by measuring these six things:</p><ol><li><strong>Monthly change volume:</strong> How much data does your pipeline actually process each month? This determines usage under volume-based pricing.</li><li><strong>Distinct keys changed:</strong> How many unique records are inserted, updated, or deleted? This is especially important for MAR-based pricing.</li><li><strong>Number of destinations:</strong> How many systems receive the data? Additional destinations can increase connection and delivery charges.</li><li><strong>Required data freshness:</strong> Do you need updates every few seconds, minutes, or hours? More frequent processing can increase destination compute costs.</li><li><strong>Historical backfill volume:</strong> How much existing data must be loaded initially or replayed later? Large backfills can create significant one-time charges.</li><li><strong>Engineering maintenance hours:</strong> How much time will your team spend monitoring, maintaining, and recovering pipelines? These operational costs belong in the comparison.</li></ol><p>Then estimate:</p><p><strong>Total monthly pipeline cost = ingestion service + connector or capacity fees + destination processing + storage and network + engineering operations</strong></p><p>Calculate one-time backfill costs separately, then include them when comparing total costs over 12 months.</p><p>Finally, test what happens if your data volume doubles, your update frequency increases, or you add another destination.</p><p>Those changes can matter more than a small difference in advertised pricing.</p><h3>The Bottom Line</h3><p>The best data ingestion pricing model depends on the workload.</p><p>Per-GB pricing may work well for append-heavy data. MAR pricing can favor repeated updates to the same records. Capacity-based and self-managed approaches introduce different infrastructure and operational trade-offs.</p><p>But vendor pricing is only part of the equation.</p><p>Destination compute, historical backfills, additional destinations, and engineering time can change the economics substantially.</p><p>For a more detailed comparison, we modeled three workloads across Estuary, Fivetran, Airbyte, Hevo, and self-managed CDC infrastructure, including published pricing, assumptions, and monthly cost calculations.</p><p><strong>Read the full analysis:</strong> <a href="https://estuary.dev/blog/real-time-data-ingestion-cost/">How Much Does Real-Time Data Ingestion Cost? Pricing Models Compared</a></p><p>The goal isn’t to find the vendor with the lowest advertised price. It’s to understand what your actual data pipeline will cost to run.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=138de94d8260" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CDC Pipeline Recovery When Source Logs Expire]]></title>
            <link>https://medium.com/@estuarydata/cdc-pipeline-recovery-when-source-logs-expire-58fa71839d06?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/58fa71839d06</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[mongodb]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 07:16:05 GMT</pubDate>
            <atom:updated>2026-08-25T07:16:05.961Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to recover when PostgreSQL WAL, Oracle redo logs, or the MongoDB oplog no longer contains the position your change data capture pipeline needs.</em></p><p>There is a specific kind of Saturday that anyone running change data capture in production eventually has.</p><p>A pipeline that has been quietly working for months goes red. The error mentions a log position that no longer exists. Somewhere in the back of your mind, you already know what happened: the pipeline fell behind, the source database kept moving, and part of the change history the connector needed is no longer available.</p><p>When a <a href="https://estuary.dev/blog/change-data-capture/">change data capture (CDC)</a> pipeline falls behind farther than the source’s retention window, it usually cannot simply resume from its old position. Recovery comes down to three questions: <strong>Does the required source history still exist? Can it be restored? And if it is truly gone, what kind of backfill or reconciliation is required to restore the destination correctly?</strong></p><p>The same basic failure appears in PostgreSQL WAL, Oracle redo logs, and MongoDB’s oplog. The details differ, but the recovery logic is surprisingly consistent.</p><p>The important part is not merely getting the pipeline running again. It is getting it running again <strong>without silently leaving the destination inconsistent, especially when deletes occurred during the gap.</strong></p><h3>What happens when a CDC source log expires?</h3><p>Log-based CDC depends on an ordered history of source changes.</p><p>PostgreSQL records changes in its write-ahead log (WAL). Oracle records them in redo and archived redo logs. MongoDB Change Streams depend on history retained in the oplog.</p><p>The CDC system also keeps some representation of its progress: an LSN associated with a PostgreSQL replication slot, an SCN in Oracle, or a MongoDB Change Stream resume token tied to oplog history.</p><p>The retention mechanics are not identical.</p><p>A PostgreSQL replication slot can cause PostgreSQL to retain WAL that a consumer still needs. Oracle archived redo retention is governed by database, archive, and backup policies. MongoDB’s oplog is retained according to its configured size and minimum retention settings rather than according to whether one particular downstream CDC consumer has acknowledged an event.</p><p>But the failure condition is the same:</p><p><strong>the position the CDC consumer needs is older than the oldest usable source history.</strong></p><p>At that point there is a gap between the last safely processed change and the earliest change the source can still provide. A new cursor alone cannot reconstruct that gap.</p><p>Before rebuilding anything, first determine whether the history is really gone. PostgreSQL WAL marked lost cannot be reconstructed from the old slot, but an Oracle archived redo file that is missing from a LogMiner session might still exist in backup and be restorable.</p><p>If the history is genuinely unavailable, the pipeline needs a new continuity point plus some form of backfill, snapshot, or state reconciliation.</p><h3>PostgreSQL CDC recovery: WAL and a lost replication slot</h3><p>PostgreSQL logical CDC reads the <a href="https://www.postgresql.org/docs/current/wal-intro.html">write-ahead log</a> using a logical replication slot.</p><p>A slot records what WAL a replication consumer may still need. Because the slot survives a disconnect, a CDC connector can normally reconnect and continue from where it stopped.</p><p>That durability creates a tradeoff.</p><p>If a consumer remains stalled, the slot can cause PostgreSQL to retain increasing amounts of WAL. Without a limit, that can consume significant disk capacity.</p><p>PostgreSQL 13 introduced max_slot_wal_keep_size as a safety mechanism. A finite value limits how much WAL replication slots can force PostgreSQL to retain. If the required WAL ultimately gets removed, the slot can become unusable.</p><p>The pg_replication_slots view exposes the important state. In particular, wal_status can move through states such as reserved, extended, unreserved, and finally lost. A value of lost means WAL required by that slot has been removed and the slot can no longer continue.</p><p>safe_wal_size is also useful when a finite retention limit applies because it shows how much additional WAL can be written before the slot risks becoming lost.</p><p>There is another wrinkle: long-running transactions.</p><p>A transaction can keep restart_lsn pinned behind even when the CDC consumer is otherwise making progress. That means sizing max_slot_wal_keep_size purely from average throughput can produce unpleasant surprises.</p><p>A larger WAL budget increases the amount of lag an operator can survive, but it also increases the amount of disk a stalled slot may retain. The right value should therefore be based on measured peak WAL generation, the outage window you want to tolerate, unusually large or long transactions, available disk, and a safety margin.</p><h3>How do you recover a lost PostgreSQL replication slot?</h3><p>If the required WAL still exists and the slot remains usable, fixing the connector or downstream bottleneck may be enough.</p><p>If wal_status = &#39;lost&#39;, however, changing the retention setting does not bring the removed WAL back. You need a new slot and a recovery process that reconciles the missing interval.</p><p>With Estuary, a lost slot requires a backfill-based recovery. The <a href="https://docs.estuary.dev/guides/troubleshooting/postgres-replication-slot-recovery/">PostgreSQL replication slot recovery guide</a> describes two useful paths.</p><p>An <strong>XMIN-limited backfill</strong> uses the last successfully processed transaction ID to scan rows inserted or updated since that point. For a large database, this can dramatically reduce the amount of data that needs to be reread.</p><p>A <strong>full incremental backfill</strong> rereads the entire current table state and is the safer option when the history is uncertain or missed deletes need to be reconciled.</p><p>Once the recovery is triggered and published, the connector establishes a fresh replication slot and resumes CDC from the new WAL position.</p><p>That distinction between XMIN and a full reconciliation becomes important later.</p><h3>Oracle CDC recovery: redo logs, LogMiner, and ORA-01291</h3><p>Oracle CDC has a different vocabulary but the same underlying problem.</p><p>Oracle records database changes in redo logs. Once online redo is archived, CDC systems using <a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/sutil/oracle-logminer-utility.html">LogMiner</a> can continue reading those archived logs.</p><p>The relevant position is usually a System Change Number, or SCN.</p><p>If LogMiner is asked to process an SCN range but one or more required redo logs are unavailable, Oracle can report:</p><p>ORA-01291: missing logfile</p><p>This deserves one important distinction.</p><p><strong>A missing redo log is not necessarily a permanently lost redo log.</strong></p><p>Oracle’s own guidance is to identify the missing SCN range and make the required redo logs available if they can still be restored from an archive or backup.</p><p>If those logs can be restored, the original history may still be recoverable and a full rebootstrap may not be necessary.</p><p>If the required redo was permanently deleted or expired and cannot be restored, then CDC continuity really has been lost. The capture must establish a new safe position and reconcile the missing interval through an appropriate snapshot or backfill strategy.</p><p>This is why redo retention should be designed around the longest realistic outage <strong>plus catch-up time</strong>, not around normal day-to-day replication lag.</p><p>There is also an important version detail for older Oracle implementations. The CONTINUOUS_MINE option used by some historical LogMiner tooling was desupported in Oracle Database 19c. Modern LogMiner-based capture implementations must manage the required redo-log range accordingly.</p><h3>MongoDB CDC recovery: oplog window and expired resume tokens</h3><p>MongoDB Change Streams depend on the <a href="https://www.mongodb.com/docs/manual/core/replica-set-oplog/">oplog</a>, the ordered history of writes maintained by a replica set.</p><p>The amount of time represented by currently available oplog history is commonly called the <strong>oplog window</strong>.</p><p>If a CDC consumer is paused or lagging longer than that window, the oplog entries associated with its saved resume position can disappear.</p><p>At that point MongoDB can no longer resume the Change Stream from that token. One common symptom is error 286, ChangeStreamHistoryLost, indicating that the required resume point may no longer exist in the oplog.</p><p>A high-write database with an undersized oplog can burn through its available history surprisingly quickly. A workload spike can also shorten the effective window even if the normal window appears comfortable.</p><p>You can inspect the current history using db.getReplicationInfo() in scripts or rs.printReplicationInfo() for formatted manual inspection.</p><p>MongoDB also supports a minimum oplog retention period through oplogMinRetentionHours. On self-managed deployments, replSetResizeOplog can dynamically change the oplog size or minimum retention period without restarting mongod. Atlas provides its own controls for configuring the minimum oplog window.</p><h3>How do you recover when a MongoDB resume token expires?</h3><p>If the resume token still maps to available oplog history, the Change Stream can resume normally.</p><p>If that history is gone, the old token cannot bridge the gap.</p><p>Recovery therefore requires re-establishing a new Change Stream position and coordinating it with a new snapshot or backfill of the source collections so that writes occurring during recovery are not themselves missed.</p><p>This coordination matters. Simply copying a collection and then opening a new Change Stream afterward can create another gap between the snapshot and streaming phases.</p><p>For more on those mechanics, see Estuary’s <a href="https://estuary.dev/blog/mongodb-change-data-capture/">MongoDB CDC guide</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCii-I4h1JJ9AcOj0vnLIw.png" /><figcaption>CDC recovery depends on whether the required source-log history is still available. If it has expired, the pipeline needs a new cursor plus a backfill or snapshot to restore consistency.</figcaption></figure><h3>PostgreSQL vs. Oracle vs. MongoDB CDC log retention</h3><p>The terminology changes across databases, but the underlying CDC failure is the same: <strong>the consumer needs change history that the source can no longer provide.</strong></p><p><strong>PostgreSQL</strong></p><ul><li><strong>Change history:</strong> Write-ahead log (WAL)</li><li><strong>CDC position:</strong> Replication slot and LSN</li><li><strong>Retention:</strong> Replication slot behavior and max_slot_wal_keep_size</li><li><strong>What to monitor:</strong> restart_lsn, confirmed_flush_lsn, wal_status, and safe_wal_size</li><li><strong>Typical failure:</strong> Required WAL is removed and the replication slot becomes unusable</li><li><strong>Recovery:</strong> Create a new slot and perform the appropriate backfill or reconciliation</li></ul><p><strong>Oracle</strong></p><ul><li><strong>Change history:</strong> Redo and archived redo logs</li><li><strong>CDC position:</strong> System Change Number (SCN)</li><li><strong>Retention:</strong> Archive and backup retention policies</li><li><strong>What to monitor:</strong> Required SCN range, available archived logs, and archive capacity</li><li><strong>Typical failure:</strong> Required redo is unavailable, often surfaced through ORA-01291</li><li><strong>Recovery:</strong> Restore the missing redo if possible. If it is permanently unavailable, establish a new capture point and backfill or rebootstrap.</li></ul><p><strong>MongoDB</strong></p><ul><li><strong>Change history:</strong> Oplog</li><li><strong>CDC position:</strong> Change Stream resume token</li><li><strong>Retention:</strong> Oplog size and minimum retention settings</li><li><strong>What to monitor:</strong> Oplog window and write volume</li><li><strong>Typical failure:</strong> The resume position falls outside available oplog history, which can produce ChangeStreamHistoryLost</li><li><strong>Recovery:</strong> Establish a new Change Stream position and coordinate it with a snapshot or backfill</li></ul><p>The important pattern is the same across all three:</p><p><strong>If the required source history still exists, resume from it. If the history is truly gone, create a new continuity point and reconcile the missing data.</strong></p><h3>The CDC recovery detail almost everyone gets wrong: deletes</h3><p>Here is where a recovery that looks successful can become a silent data-quality problem.</p><p>A backfill normally reads records that <strong>exist now</strong>.</p><p>Suppose your pipeline stopped at 2:00 p.m. A customer record was deleted at 3:00 p.m. The delete existed in the transaction log, but the pipeline never consumed it. By the time the pipeline is repaired, that portion of the log has expired.</p><p>Now run a partial backfill.</p><p>The customer record is not in the source anymore, so there is nothing for the backfill to read. But unless the recovery mechanism explicitly reconciles absence, the stale customer record may still exist in the destination.</p><p>The pipeline is green again.</p><p>The data is still wrong.</p><p>This is why Estuary’s XMIN-limited PostgreSQL recovery has an important tradeoff. It can efficiently discover rows inserted or updated after a cutoff transaction ID, but it cannot discover a row that was deleted during the gap because that row no longer exists to scan.</p><p>When deletes matter, use a recovery mode that reconciles the full current source state, such as Estuary’s full incremental backfill, or another connector-specific full-state reconciliation method.</p><p>When the table is genuinely append-only, or downstream consumers do not care about deletions, the faster partial recovery may be perfectly appropriate.</p><p>The key is to make that decision deliberately rather than discovering stale rows during an audit months later.</p><h3>A practical CDC recovery checklist</h3><p>When a CDC pipeline reports missing source history, use this order of operations:</p><ul><li><strong>Fix the reason it fell behind first.</strong> Resolve downstream backpressure, connectivity, source performance, disk pressure, or the failed consumer before recreating anything.</li><li><strong>Preserve the last known cursor.</strong> Record the LSN, SCN, resume token, transaction ID, connector logs, and approximate time the destination stopped progressing.</li><li><strong>Verify whether the required history is actually gone.</strong> A usable PostgreSQL slot may still resume; Oracle archived redo may be restorable; a MongoDB resume token may still fall inside the oplog window.</li><li><strong>Create a new continuity point only when necessary.</strong> A new slot, SCN, or Change Stream does not reconstruct the missing interval by itself.</li><li><strong>Choose the backfill based on correctness requirements.</strong> If deletes may have occurred, favor a full-state reconciliation over a rows-changed-since-X shortcut.</li><li><strong>Validate data, not just pipeline health.</strong> Check recent inserts, updates, deletions, row counts, and business-level aggregates after recovery.</li></ul><p>A connector reporting “running” proves that replication has restarted. It does not prove that the destination is correct.</p><h3>How do you prevent CDC log retention failures?</h3><p>Recovery is survivable. Avoiding it is better.</p><p>The most important control is to size retention against your <strong>worst realistic incident</strong>, not your average lag.</p><p>That means accounting for a destination outage, a network partition, a failed deployment, a slow maintenance operation, and the amount of time the pipeline will need to catch up afterward.</p><p>The second control is alerting before lag becomes data loss.</p><p>For PostgreSQL, monitor the distance between the live WAL position, confirmed_flush_lsn, and restart_lsn, along with safe_wal_size when available.</p><p>For Oracle, track whether the SCN your capture still needs remains covered by online or archived redo and whether archive capacity is approaching its limit.</p><p>For MongoDB, monitor both the oplog window and the rate at which oplog data is being generated.</p><p>The third control is understanding backpressure.</p><p>A CDC pipeline is an end-to-end system. A perfectly healthy source connector can still become endangered if a warehouse, streaming target, network path, or processing stage stalls long enough to stop progress upstream.</p><p>Know exactly what happens to the source cursor when the destination stops accepting data.</p><p>That answer determines whether a downstream incident remains a downstream incident or eventually becomes a CDC recovery incident.</p><p>For Estuary pipelines, the <a href="https://docs.estuary.dev/reference/backfilling-data/">backfilling documentation</a> covers the available controls for recovering and re-reading source state.</p><h3>CDC is reliable when recovery is part of the design</h3><p>None of this means CDC is fragile.</p><p>It means log-based CDC has a predictable boundary: a consumer can resume only while the source still retains the history needed to reconnect its previous position to the present.</p><p>Reliable CDC architecture therefore requires more than streaming changes when everything is healthy. It requires deliberate retention, lag monitoring, backpressure awareness, backfill behavior, and delete reconciliation.</p><p>The teams that trust CDC are not necessarily the teams that never lose a cursor.</p><p>They are the teams that already know what they will do when it happens.</p><h3>Further reading</h3><ul><li><a href="https://estuary.dev/blog/postgresql-replication-slots/">PostgreSQL Replication Slots: How to Monitor, Recover, and Prevent WAL Bloat</a></li><li><a href="https://docs.estuary.dev/guides/troubleshooting/postgres-replication-slot-recovery/">Recovering a PostgreSQL Capture After Replication Slot Loss</a></li><li><a href="https://estuary.dev/blog/mongodb-change-data-capture/">MongoDB Change Data Capture: How It Works, Methods &amp; Setup</a></li><li><a href="https://docs.estuary.dev/reference/backfilling-data/">Backfilling Data in Estuary</a></li><li><a href="https://docs.estuary.dev/reference/deletions/">Handling Deletions in Estuary</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=58fa71839d06" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Real Question Behind “Should We Use Snowflake Openflow?]]></title>
            <link>https://medium.com/@estuarydata/the-real-question-behind-should-we-use-snowflake-openflow-df822b62474b?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/df822b62474b</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[data-integration]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Mon, 03 Aug 2026 08:09:49 GMT</pubDate>
            <atom:updated>2026-08-03T08:09:49.925Z</atom:updated>
            <content:encoded><![CDATA[<p>When Snowflake shipped <a href="https://www.snowflake.com/en/product/features/openflow/">Openflow</a>, a lot of data teams read the announcement the same way: finally, a managed pipeline tool that lives inside the warehouse we already pay for. No separate integration vendor, no additional control plane, and potentially no new procurement process. On paper it’s the obvious default.</p><p>But “should we use Openflow?” is the wrong first question. The real one, the one that determines whether you’ll be happy with this decision in two years, is architectural: do you want your integration layer to be centered on Snowflake, or to remain independent of any individual warehouse or destination?</p><p>That single choice shapes everything downstream: how you add new destinations, how you handle backfills, what your bill looks like when volume grows, and how much rework you’re signing up for the day your stack expands past Snowflake. Openflow is a good lens for thinking about it, because it’s the cleanest example yet of the warehouse-native pattern. So let’s use it to reason through the tradeoff rather than tick through a feature matrix.</p><h3>What “warehouse-native” actually buys you</h3><p>Openflow is a managed integration service built directly into Snowflake. You reach it from Snowsight, it runs on <a href="https://nifi.apache.org/">Apache NiFi</a> under the hood, and It integrates with Snowflake’s authentication, role-based access controls, and networking model, including External Access Integrations and PrivateLink, rather than introducing a completely separate governance system. Per <a href="https://docs.snowflake.com/en/user-guide/data-integration/openflow/about">Snowflake’s own documentation</a>, it supports change data capture from Postgres, MySQL, Oracle, and SQL Server, plus streaming sources like Kafka and Kinesis, and it presents all of this through a drag-and-drop canvas instead of config files or scripts.</p><p>If Snowflake is the center of your world, this is genuinely appealing. There’s one security model to reason about, one place data lands, one environment for ingestion, transformation, and serving. For a team whose entire analytical life happens in Snowflake, collapsing the integration layer into the warehouse removes a whole category of operational overhead. That’s a real benefit and worth stating plainly.</p><p>The drag-and-drop interface is the part that demos best. Drag a Postgres CDC component onto the canvas, connect it to a transform, connect that to a Snowflake loader, fill in credentials and table names, done. For simple pipelines it’s faster and friendlier than writing Airflow DAGs in Python or wiring up a config-heavy connector.</p><h3>Where the warehouse-native model starts to cost you</h3><p>Here’s the thing the demo doesn’t show you: The properties that make warehouse-native integration convenient on day one can also introduce constraints as requirements expand. A few of them are worth thinking hard about before you commit.</p><ul><li><strong>The visual interface has a ceiling:</strong> A canvas makes straightforward pipelines approachable, but complex flows still require teams to understand processors, controller services, queues, state, and NiFi’s execution model. Openflow supports connector versioning, but visual definitions can remain harder to review and compare than text-based pipeline configuration as flows grow.</li><li><strong>Pricing runs through Snowflake, which makes it hard to forecast:</strong> Openflow doesn’t have a clean per-record or per-gigabyte number. On top of Openflow’s own fees, you’re paying for the Snowflake resources it consumes: Snowpark Container Services compute pools for the deployment, possible ingestion costs through <a href="https://estuary.dev/blog/snowflake-native-data-ingestion/">Snowpipe or Snowpipe Streaming</a>, warehouse compute, and telemetry. The management side of a deployment runs continuously once it’s set up, independent of how many pipelines are actively moving data. None of this is a scandal, it’s just genuinely difficult to forecast, and the only reliable way to know your real cost is to run a trial and watch the usage accumulate across several services. There’s a good breakdown of how these Snowflake ingestion costs stack up in <a href="https://estuary.dev/blog/hidden-costs-snowflake-ingestion/">Estuary’s analysis of Snowflake ingestion strategy</a>. Compare that to a flat per-connector fee plus a per-GB rate, and the difference isn’t the dollar amount, it’s whether you can answer “what will this cost at 3x volume?” without a spreadsheet and a guess.</li><li><strong>Deployment model shapes your cloud options:</strong> This is the detail most summaries get wrong, so it’s worth stating precisely. Openflow offers two deployment models, and their cloud availability differs. The <a href="https://docs.snowflake.com/en/user-guide/data-integration/openflow/about-spcs">Snowflake-managed deployment</a> (running on Snowpark Container Services) is generally available on AWS, Azure, and GCP. But the <a href="https://docs.snowflake.com/en/user-guide/data-integration/openflow/about-byoc">Bring Your Own Cloud (BYOC) deployment</a>, where the data plane runs in your own VPC, is currently generally available on AWS commercial regions only. So if you specifically want to run the integration data plane inside your own Azure or GCP environment, that option isn’t available yet. Worth confirming against your compliance and network requirements before you architect around it.</li></ul><p>And there’s a maturity dimension that’s just honest to name: Openflow reached general availability relatively recently, which means most teams haven’t run it in anger yet. Early adopters have had success, but overwhelmingly on the straightforward cases, single-database CDC into Snowflake, standard SaaS connectors, the stuff that would otherwise be a Fivetran job. That’s not a knock, it’s just where a young product’s proven territory currently ends. If you want the architecture-level walkthrough, Estuary published a <a href="https://estuary.dev/blog/snowflake-openflow-deep-dive/">deep dive on Openflow’s internals</a> that goes further than I will here.</p><h3>The independent-layer alternative, and what it optimizes for</h3><p>The other side of the architectural fork treats integration as its own layer that doesn’t belong to any single destination. This is the model tools like <a href="https://estuary.dev/">Estuary</a> implement: instead of a pipeline that runs <em>into</em> Snowflake, you capture a source once into a durable, replayable stream, and then fan that stream out to as many destinations as you need.</p><p>The mechanical difference is that capture is decoupled from delivery. When you pull <a href="https://estuary.dev/blog/change-data-capture/">change data capture</a> off a Postgres database, it becomes a reusable collection, not a point-to-point pipe. Snowflake can read from it. So can ClickHouse, BigQuery, Kafka, or object storage, without re-extracting anything from the source. You define the capture once and point it wherever you need.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BRIjWJGkv22AR7idTPObGQ.png" /><figcaption>A destination-independent architecture captures PostgreSQL changes once into a durable collection, then delivers the same data independently to Snowflake, ClickHouse, Kafka, and other systems.</figcaption></figure><p>That decoupling is what unlocks the properties warehouse-native tools struggle with:</p><ul><li><strong>Adding a destination is cheap.</strong> New system, new materialization reading from the existing collection. No second pipeline against the source, no reverse-ETL workaround.</li><li><strong>Backfilling a new destination may not require rereading the source.</strong> Provided the required history remains available in the collection, a new or reset materialization can rebuild its destination directly from collection data rather than querying production Postgres again.</li><li><strong>Transformations happen in flight.</strong> You can apply SQL or TypeScript logic (with Python available in private or BYOC data planes) between capture and delivery, so you land clean data and avoid paying warehouse compute to transform rows you were going to discard anyway.</li></ul><h3>So which one is right?</h3><p>This isn’t a case where one tool wins. It’s a case where the honest answer is “it depends on a question about your future, not your present.”</p><p><strong>Lean warehouse-native (Openflow) if:</strong> Snowflake is your primary system and likely to stay that way, your permissions and governance already run on Snowflake roles, your sources are common and well-supported, and you value a single managed environment over cost predictability and multi-destination flexibility. If most of your data is going to live in Snowflake anyway, putting the integration layer there too is a coherent, low-overhead choice.</p><p><strong>Lean independent-layer if:</strong> Snowflake is one destination among several (or you suspect it will be), you want predictable pricing as volume grows, you need replay and backfill as first-class features, or you simply don’t want to rebuild your integration pipelines every time your stack evolves. Keeping the integration layer separate from any single warehouse is insurance against your own future architecture.</p><p>And they’re not mutually exclusive. A perfectly reasonable setup uses Openflow for its tight Snowflake integration while an independent streaming layer acts as the backbone across everything else; Snowflake stays an important destination, just not the only one.</p><p>The decision that matters isn’t really “Openflow or not.” It’s whether you want your integration layer welded to your warehouse or free-standing. Pick that consciously, because it’s a lot cheaper to choose it now than to unwind it later.</p><p><em>For a full feature-by-feature comparison, including a side-by-side table, a worked example of a single-source-to-many-destinations pipeline, and how in-flight transformations are configured, Estuary wrote a detailed version here: </em><a href="https://estuary.dev/blog/snowflake-openflow-vs-estuary/"><em>Snowflake Openflow vs. Estuary: When to Use Each</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df822b62474b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Your AI Agent’s Biggest Problem Isn’t the Model, It’s Postgres]]></title>
            <link>https://medium.com/@estuarydata/postgres-cdc-ai-agents-02393fcf6af7?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/02393fcf6af7</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[change-data-capture]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Wed, 01 Jul 2026 06:43:07 GMT</pubDate>
            <atom:updated>2026-07-01T06:43:07.976Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published on the </em><a href="https://estuary.dev/blog/postgres-cdc-ai-agents/"><em>Estuary blog</em></a></p><p>AI agents can now create entire databases on their own. Databricks recently shared a statistic worth sitting with: on Neon, the managed Postgres company it acquired last year, AI agents now create 80% of all databases and 97% of database branches.</p><p>Agents are becoming a new class of database user. They spin up development environments, branch production-like datasets, generate schemas, run queries, and write migrations, tasks that used to belong almost entirely to application developers, DBAs, and data engineers.</p><p>Spinning up a database branch is trivial now. The harder problem is making sure the agent has fresh, trustworthy context when it decides what to do next.</p><p>If you work in data engineering, platform engineering, or AI infrastructure and you’re building agents or RAG systems on top of operational Postgres data, here’s the short version: when agents act on business state, the pipeline between Postgres and the systems feeding those agents becomes part of AI correctness. That pipeline needs CDC, freshness visibility, safe replication-slot management, delete propagation, schema evolution, and observability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*OC1oI2wijtJ3ob_K.png" /></figure><h3>The model usually isn’t the weakest link</h3><p>When an agent makes a bad call, people look at the model first. Was the prompt bad? Did the LLM hallucinate? Did a tool call fail?</p><p>Sometimes yes. But in operational systems, the boring answer is often the right one: the agent was looking at old data.</p><p>Take a support agent that issues credits. The model is fine, the policy docs are current, the tool permissions are correct. But if a customer upgraded their plan 15 minutes ago and the warehouse table refreshes hourly, the agent still sees the old plan, applies the wrong policy, and explains its reasoning confidently and incorrectly.</p><p>That’s not a model failure. It’s a data freshness failure. The model did exactly what it was asked to do with the context it was given, and most enterprises that have scaled agents past the pilot stage run into some version of this same wall: agentic AI cannot run on stale data.</p><h3>Why Postgres keeps coming up</h3><p>For most companies, the operational state of the business starts in Postgres: customers, orders, subscriptions, payments, permissions, inventory, feature flags. The boring tables that decide what the business is actually allowed to do.</p><p>PostgreSQL was the most-used database in Stack Overflow’s 2025 Developer Survey, at over 55% of all respondents and 58% among professional developers. It’s also getting pulled directly into AI architecture through tools like pgvector for similarity search and Neon’s MCP Server, which lets agents manage Postgres projects and run SQL through natural language.</p><p>Postgres isn’t sitting off to the side of the AI stack anymore. It’s becoming part of the agent infrastructure layer itself.</p><h3>Your agent’s world model might just be a batch job</h3><p>A lot of “AI agent” demos are quietly running on batch ETL from Postgres to a warehouse. That was fine when a human was checking a dashboard: a 45-minute-old number is annoying but survivable, and a person can sanity-check it before acting.</p><p>Agents don’t have that buffer. They retrieve context, reason over it, call tools, and act, often in the same workflow. The gap between “observed state” and “business action” matters a lot more.</p><p>The fix isn’t hammering production Postgres for every decision either. What’s missing is a real-time data plane sitting between Postgres and the systems agents actually retrieve from.</p><h3>How CDC fits in</h3><p><a href="https://estuary.dev/blog/change-data-capture/">Change data capture (CDC)</a> for Postgres starts with the write-ahead log (WAL). Every committed change passes through it. Logical replication decodes those changes into row-level events, and replication slots track how far each consumer has read. If you want the deeper mechanics of <a href="https://estuary.dev/blog/the-complete-change-data-capture-guide-for-postgresql/">Postgres CDC specifically</a>, including query-based, trigger-based, and log-based approaches, that’s covered in more depth separately.</p><p>A CDC event for an updated subscription looks something like:</p><pre>{<br> &quot;op&quot;: &quot;u&quot;,<br> &quot;schema&quot;: &quot;public&quot;,<br> &quot;table&quot;: &quot;subscriptions&quot;,<br> &quot;primary_key&quot;: { &quot;id&quot;: &quot;sub_123&quot; },<br> &quot;before&quot;: { &quot;plan&quot;: &quot;trial&quot;, &quot;status&quot;: &quot;active&quot; },<br> &quot;after&quot;: { &quot;plan&quot;: &quot;enterprise&quot;, &quot;status&quot;: &quot;active&quot; },<br> &quot;source&quot;: {<br>   &quot;lsn&quot;: &quot;16/B374D848&quot;,<br>   &quot;commit_timestamp&quot;: &quot;2026-05-21T13:04:32Z&quot;<br> }<br>}</pre><p>That single event can update a warehouse table, invalidate a cache entry, trigger an embedding refresh, or publish to a Kafka-compatible consumer, all without each destination independently polling Postgres. The agent doesn’t need to query the primary database for every fact; it needs the systems around it to stay in sync with the source of truth.</p><h3>Stale embeddings are a grounding problem</h3><p>Suppose a product catalog lives in Postgres and powers an internal support agent through embeddings. When a product description changes, the embedding derived from the old description is instantly stale. If the product is deleted, the vector should be too. If it moves from “available” to “deprecated,” the retriever shouldn’t hand it to the agent as if nothing changed.</p><p>This is where CDC becomes part of AI correctness directly: if the source row changes, the agent-facing context has to change with it.</p><h3>Common failure modes to watch</h3><p>Failure modeWhy it matters for agentsCDC lagAgents act on stale customer, product, or transaction dataReplication slot bloatA stalled consumer can force Postgres to retain WAL and create disk pressureMissing deletesDeleted or revoked records can still appear in agent contextSchema driftColumn changes can silently break pipelines or leave agents with incomplete dataBackfill pressureLarge snapshots can slow catch-up and load the source databaseStale vector indexesThe source is current, but retrieval still returns old embedded content</p><h3>Replication slots deserve real monitoring</h3><p>A replication slot is Postgres promising not to remove WAL a consumer might still need. That’s a good guarantee, but it has teeth. By default, max_slot_wal_keep_size is -1, meaning a slot can retain an unlimited amount of WAL if nobody&#39;s watching it.</p><p>The failure doesn’t usually announce itself as an AI problem or even a replication problem. It looks like a storage problem: disk fills up, the connector looks quiet, and the primary database is getting closer to a bad day. One team in a Debezium user thread reported replication slot lag growing past 2 TB on a database handling roughly 8 million new records daily.</p><p>A simple query goes a long way toward catching this early:</p><pre>SELECT<br> slot_name,<br> database,<br> active,<br> wal_status,<br> pg_size_pretty(pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn)) AS retained_wal,<br> restart_lsn,<br> confirmed_flush_lsn<br>FROM pg_replication_slots<br>ORDER BY pg_wal_lsn_diff(pg_current_wal_lsn(), restart_lsn) DESC NULLS LAST;</pre><p>Treat replication slots as production infrastructure: monitor retained WAL, alert when restart_lsn stops advancing, set an explicit max_slot_wal_keep_size, and have a recovery path documented before you need it.</p><h3>What production-grade Postgres CDC needs to get right</h3><ol><li><strong>Latency has to be visible, not just described as “low.”</strong> You want source commit time, capture time, materialization time, and retrieval time as actual numbers.</li><li><strong>The pipeline has to protect the primary.</strong> That means bounded WAL retention and active slot monitoring, not defaults left on “unlimited.”</li><li><strong>Backfills can’t lie.</strong> A pipeline needs to snapshot a table as of a source position, capture changes during the snapshot, and merge both without gaps or duplicates.</li><li><strong>Deletes need the same seriousness as inserts.</strong> Churn, deprecations, and revoked permissions have to propagate downstream, not just new rows.</li><li><strong>Schema changes are normal, not incidents.</strong> Columns get added, types change, fields get renamed. The pipeline needs an explicit, recoverable way to handle it.</li><li><strong>One capture path, many destinations.</strong> Warehouses, vector indexes, caches, and event consumers can all be fed from a single governed Postgres capture rather than each building its own extractor.</li></ol><p>If you’re comparing vendors against this checklist, <a href="https://estuary.dev/blog/how-to-evaluate-cdc-solutions">this guide to evaluating CDC solutions</a> walks through capture method, delete handling, backfills, and schema changes in more detail.</p><h3>A more honest architecture</h3><p>The production version of a support agent doesn’t query Postgres directly, and it doesn’t rely on hourly ETL either. It sits on a CDC stream feeding warehouse tables, low-latency serving tables, and scoped agent tools. When a customer upgrades their plan, the subscriptions row changes, a CDC event lands downstream, the current account view updates, and the agent sees the new plan almost immediately.</p><p>The model didn’t get smarter. The system did.</p><h3>Why this matters more as agents scale</h3><p>CDC lag, schema drift, and replication slot management aren’t new problems. What agents change is the cost of getting them wrong. A stale table used to produce a bad dashboard that someone might catch in a meeting. Now stale context can trigger an action: an email sent, a refund issued, a ticket opened.</p><p>Databricks found that organizations using AI governance tools get over 12 times more AI projects into production, and organizations using evaluation tools move nearly 6 times more AI systems to production. Evals and governance matter, but they need to cover the data plane too. A model eval won’t tell you a subscriptions table is 47 minutes behind. A prompt test won’t catch a replication slot retaining 200 GB of WAL.</p><p>The agent stack needs data-plane SLOs just as much as it needs model evals: freshness targets, WAL retention limits, delete propagation windows, and freshness metadata logged alongside every agent action.</p><p><em>This is an adapted version of a longer piece originally published on the </em><a href="https://estuary.dev/blog/postgres-cdc-ai-agents/"><em>Estuary blog</em></a><em>, which includes the full architecture diagrams, additional monitoring queries, and a deeper look at replication slot failure modes.</em></p><p><em>Estuary helps teams </em><a href="https://estuary.dev/capabilities/change-data-capture/"><em>capture Postgres changes</em></a><em> once and stream them continuously into the warehouses, vector indexes, caches, and event consumers their agents rely on. </em><a href="https://dashboard.estuary.dev/register"><em>Start building with Estuary</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=02393fcf6af7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Server to Snowflake: Complete Pipeline Setup Guide]]></title>
            <link>https://medium.com/@estuarydata/sql-server-to-snowflake-complete-pipeline-setup-guide-01a121049ae2?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/01a121049ae2</guid>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Tue, 24 Mar 2026 12:17:54 GMT</pubDate>
            <atom:updated>2026-03-24T12:17:54.475Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>SQL Server and Snowflake serve different purposes in a modern data stack. SQL Server is a general-purpose relational database that excels at transactional workloads: it handles concurrent writes, enforces row-level locking, and optimizes for fast single-record lookups. Snowflake is an analytical data warehouse built for query performance across large datasets: it uses columnar storage, massively parallel processing, and separates compute from storage to handle complex aggregations at scale.</p><p>Because they serve different purposes, the data in SQL Server almost always needs to reach Snowflake at some point. Your application writes to SQL Server. Your analysts, data scientists, and business intelligence tools read from Snowflake. The pipeline between them is what keeps those two worlds in sync.</p><p>Building that pipeline correctly is not trivial. SQL Server and Snowflake have different schema conventions, different data type mappings, different consistency models, and different expectations around how updates and deletes are handled. A naive approach produces a pipeline that works for inserts but silently misses updates, drifts out of sync over time, or breaks entirely when a schema change happens in production.</p><p>This guide covers how to build a production-grade pipeline from SQL Server to Snowflake that handles all of this correctly. It covers the three different capture mechanisms available for SQL Server, the setup differences across self-hosted and cloud-hosted SQL Server environments, and the configuration options that determine how data lands in Snowflake.</p><p><strong>What this guide covers:</strong></p><ul><li>How to choose between CDC, Change Tracking, and Batch capture for your SQL Server environment</li><li>Prerequisites and SQL commands to enable CDC on SQL Server</li><li>Step-by-step pipeline setup using Estuary</li><li>Snowflake configuration including key-pair authentication</li><li>Setup specifics for Azure SQL Database, Amazon RDS, and Google Cloud SQL</li><li>Troubleshooting the most common failures</li><li>How Estuary compares to Fivetran, Airbyte, Azure Data Factory, and SSIS for this use case</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*DTiIgbWYhgEXa7RElhI7IQ.png" /></figure><h3>Choosing the Right SQL Server Capture Method</h3><p>Before setting up the pipeline you need to decide how Estuary reads data from SQL Server. There are three options and choosing the wrong one for your environment is painful to fix after the pipeline is running in production.</p><ol><li><strong>CDC (Change Data Capture)</strong> reads directly from the SQL Server transaction log, capturing every insert, update, and delete in the order they occurred. It is the most complete option, supports tables without primary keys, and delivers changes to Snowflake within milliseconds. It requires SQL Server 2017 or later and CDC enabled at both the database and table level. The prerequisites section below covers the exact setup commands.</li><li><strong>Change Tracking</strong> is a lighter alternative that records which rows changed but not the full content of those changes. It uses less storage than CDC, supports computed columns and computed primary keys, but cannot produce a complete audit history. If a row is updated multiple times in rapid succession, Change Tracking may combine those into a single change event. Use this when your tables all have primary keys and minimizing source database overhead is a priority.</li><li><strong>Batch Query</strong> polls your SQL Server tables or views on a defined schedule rather than reading from the transaction log. It works on older SQL Server versions and environments where CDC is not available, and it supports database views which neither CDC nor Change Tracking can capture. The tradeoff is latency measured in minutes to hours rather than milliseconds.</li></ol><p>For most production pipelines where data freshness and completeness matter, CDC is the right choice. The rest of this guide focuses on CDC with notes where Change Tracking and Batch Query differ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*zVqtxH26rdqX9_ovbiATQw.png" /></figure><h3>Prerequisites</h3><p>Before building the pipeline, both your SQL Server instance and your Snowflake account need to be configured correctly. Skipping or partially completing these steps is the most common cause of connection failures and silent data gaps in production pipelines.</p><h3>SQL Server Prerequisites</h3><p><strong>Supported versions and platforms:</strong></p><p>The CDC connector supports SQL Server 2017 and later on the following platforms:</p><ul><li>Self-hosted SQL Server (on-premises or cloud VM)</li><li>Azure SQL Database</li><li>Amazon RDS for SQL Server</li><li>Google Cloud SQL for SQL Server</li></ul><p>If you are running SQL Server 2016 or earlier, use the Change Tracking or Batch Query connector instead. CDC support in versions prior to 2017 is inconsistent and not recommended for production pipelines.</p><p><strong>Required permissions:</strong></p><p>The database user Estuary uses to connect to SQL Server needs the following permissions:</p><pre>-- Grant VIEW DATABASE STATE permission<br>GRANT VIEW DATABASE STATE TO your_estuary_user;</pre><pre>-- Grant SELECT on all tables to be captured<br>GRANT SELECT ON SCHEMA::dbo TO your_estuary_user;</pre><pre>-- Grant EXECUTE on CDC system stored procedures<br>GRANT EXECUTE ON sys.sp_cdc_enable_db TO your_estuary_user;</pre><p>If you are running SQL Server 2022 or later, replace VIEW DATABASE STATE with VIEW DATABASE PERFORMANCE STATE:</p><pre>GRANT VIEW DATABASE PERFORMANCE STATE TO your_estuary_user;</pre><p><strong>Step 1: Enable CDC at the database level</strong></p><p>CDC must be enabled on the database before it can be enabled on individual tables. Run this command in the context of the database you want to capture:</p><pre>USE your_database_name;<br>EXEC sys.sp_cdc_enable_db;</pre><p>Verify CDC is enabled:</p><pre>SELECT name, is_cdc_enabled<br>FROM sys.databases<br>WHERE name = &#39;your_database_name&#39;;</pre><p>The is_cdc_enabled column should return 1. If it returns 0, the enable command did not complete successfully. Check that your user has the required permissions and that the SQL Server Agent service is running, as CDC requires the SQL Server Agent to function.</p><p><strong>Step 2: Enable CDC on individual tables</strong></p><p>CDC must be enabled separately on each table you want to capture. Run this command for each table:</p><pre>EXEC sys.sp_cdc_enable_table<br>  @source_schema = N&#39;dbo&#39;,<br>  @source_name = N&#39;your_table_name&#39;,<br>  @role_name = NULL,<br>  @supports_net_changes = 1;</pre><p>The parameters are:</p><ul><li>@source_schema is the schema containing your table. Most SQL Server tables use dbo but replace this with your actual schema if different.</li><li>@source_name is the name of the table to capture.</li><li>@role_name controls access to the CDC change tables. Setting it to NULL means any user with SELECT permission on the source table can read the change data. Set this to a specific role name if you want to restrict access.</li><li>@supports_net_changes set to 1 enables net changes queries which return only the final state of changed rows. This is recommended for most use cases.</li></ul><p>Verify CDC is enabled on the table:</p><pre>SELECT name, is_tracked_by_cdc<br>FROM sys.tables<br>WHERE name = &#39;your_table_name&#39;;</pre><p>The is_tracked_by_cdc column should return 1.</p><p><strong>Step 3: Verify SQL Server Agent is running</strong></p><p>CDC relies on the SQL Server Agent to run two jobs: one that reads from the transaction log and populates the change tables, and one that cleans up old change data. If the SQL Server Agent is not running, no changes will be captured.</p><p>Check the Agent status:</p><pre>EXEC xp_servicecontrol &#39;QUERYSTATE&#39;, &#39;SQLSERVERAGENT&#39;;</pre><p>If the Agent is stopped, start it from SQL Server Management Studio by right-clicking SQL Server Agent in the Object Explorer and selecting Start, or from the command line:</p><pre>net start SQLSERVERAGENT</pre><p>On Azure SQL Database, SQL Server Agent is managed by Microsoft and runs automatically. You do not need to start it manually.</p><p><strong>Step 4: Configure transaction log retention</strong></p><p>The CDC connector reads from the SQL Server transaction log. If the transaction log is truncated before the connector has read all changes, those changes are lost permanently. This is a common production failure on databases with aggressive log retention policies.</p><p>Check your current log retention setting:</p><pre>EXEC sys.sp_cdc_help_change_data_retention;</pre><p>Set a retention period that gives the connector enough time to process changes even during periods of slow throughput or temporary outages. Three days is a reasonable minimum for most production environments:</p><pre>EXEC sys.sp_cdc_change_table_retention<br>  @capture_instance = &#39;dbo_your_table_name&#39;,<br>  @retention = 4320;  -- 4320 minutes = 3 days</pre><h3>Platform-Specific Prerequisites</h3><p><strong>Self-hosted SQL Server</strong></p><p>No additional configuration is required beyond the steps above. Ensure that the SQL Server instance is network-accessible from Estuary’s IP addresses. The full list of Estuary IP addresses to allowlist is available at <a href="https://docs.estuary.dev/reference/allow-ip-addresses/">https://docs.estuary.dev/reference/allow-ip-addresses/</a>.</p><p><strong>Azure SQL Database</strong></p><p>Azure SQL Database supports CDC but requires a few differences in setup.</p><p>The sys.sp_cdc_enable_db command requires that your Azure SQL user is a member of the db_owner role:</p><pre>ALTER ROLE db_owner ADD MEMBER your_estuary_user;</pre><p>Azure SQL Database does not support the xp_servicecontrol command to check SQL Server Agent status. The Agent runs automatically and does not need manual management.</p><p>Enable CDC on the database:</p><pre>EXEC sys.sp_cdc_enable_db;</pre><p>Then enable CDC on individual tables using the same sys.sp_cdc_enable_table command as self-hosted SQL Server.</p><p><strong>Amazon RDS for SQL Server</strong></p><p>RDS for SQL Server uses a different stored procedure to enable CDC at the database level because RDS users do not have sysadmin privileges:</p><pre>EXEC msdb.dbo.rds_cdc_enable_db &#39;your_database_name&#39;;</pre><p>Enabling CDC on individual tables uses the same sys.sp_cdc_enable_table command as self-hosted SQL Server.</p><p>The RDS instance must be running SQL Server Enterprise or Developer edition. CDC is not available on RDS SQL Server Standard edition, which is a common source of confusion. If you are on Standard edition, use the Change Tracking connector instead.</p><p>Also ensure that automated backups are enabled on your RDS instance. RDS requires automated backups to support CDC log reading.</p><p><strong>Google Cloud SQL for SQL Server</strong></p><p>Google Cloud SQL for SQL Server supports CDC on Enterprise and Enterprise Plus editions. Standard edition does not support CDC.</p><p>Enable CDC at the database level:</p><pre>EXEC sys.sp_cdc_enable_db;</pre><p>The Cloud SQL service account must have sufficient permissions to run CDC jobs. If you encounter permission errors when enabling CDC on tables, contact Google Cloud support to verify the service account configuration for your instance.</p><h3>Snowflake Prerequisites</h3><p>Estuary connects to Snowflake using key-pair authentication rather than username and password. This is a Snowflake security requirement for programmatic access and needs to be set up before you can configure the Snowflake materialization.</p><p><strong>Step 1: Generate a key pair</strong></p><p>Generate a private key on your local machine:</p><pre>openssl genrsa 2048 | openssl pkcs8 -topk8 -inform PEM -out private_key.p8 -nocrypt</pre><p>Generate the corresponding public key:</p><pre>openssl rsa -in private_key.p8 -pubout -out public_key.pub</pre><p><strong>Step 2: Assign the public key to your Snowflake user</strong></p><p>Log into Snowflake and run:</p><pre>ALTER USER your_snowflake_user<br>SET RSA_PUBLIC_KEY=&#39;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ...&#39;;</pre><p>Replace the key value with the contents of your public_key.pub file, removing the header and footer lines that say -----BEGIN PUBLIC KEY----- and -----END PUBLIC KEY-----.</p><p><strong>Step 3: Create a dedicated Snowflake user and role for Estuary</strong></p><p>It is good practice to create a dedicated user and role for the pipeline rather than using an admin account:</p><pre>-- Create role<br>CREATE ROLE estuary_role;</pre><pre>-- Grant necessary permissions<br>GRANT USAGE ON DATABASE your_database TO ROLE estuary_role;<br>GRANT USAGE ON SCHEMA your_database.your_schema TO ROLE estuary_role;<br>GRANT CREATE TABLE ON SCHEMA your_database.your_schema TO ROLE estuary_role;<br>GRANT INSERT, UPDATE, DELETE, SELECT ON ALL TABLES<br>  IN SCHEMA your_database.your_schema TO ROLE estuary_role;</pre><pre>-- Create user and assign role<br>CREATE USER estuary_user<br>  DEFAULT_ROLE = estuary_role<br>  DEFAULT_WAREHOUSE = your_warehouse;</pre><pre>GRANT ROLE estuary_role TO USER estuary_user;</pre><pre>-- Assign public key to user<br>ALTER USER estuary_user<br>  SET RSA_PUBLIC_KEY=&#39;your_public_key_contents_here&#39;;</pre><p><strong>Step 4: Note your Snowflake connection details</strong></p><p>You will need the following information when configuring the Snowflake materialization in Estuary:</p><ul><li>Host URL in the format orgname-accountname.snowflakecomputing.com</li><li>Database name</li><li>Schema name</li><li>Warehouse name</li><li>Username</li><li>Private key contents from your private_key.p8 file</li></ul><h3>Setting Up the SQL Server to Snowflake Pipeline in Estuary</h3><p>With both SQL Server and Snowflake configured correctly, you can now build the pipeline. Estuary handles the full data flow: capturing changes from SQL Server using CDC, storing them durably in an intermediate collection, and materializing them continuously into Snowflake.</p><p>The setup has two main parts: creating a capture from SQL Server and creating a materialization to Snowflake. Both are done through the Estuary web dashboard without writing any code.</p><h3>Part 1: Create a SQL Server Capture</h3><p><strong>Step 1: Create an Estuary account</strong></p><p>Go to <a href="https://dashboard.estuary.dev/">dashboard.estuary.dev</a> and register for a free account. You can sign up using Google or GitHub credentials. Once inside you will see the main dashboard with options to create captures and materializations.</p><p><strong>Step 2: Create a new capture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*lJipptm5e8DFAJyEh93gsg.png" /></figure><p>Click Captures in the left navigation, then click New Capture. The connector catalog opens showing all available source connectors.</p><p><strong>Step 3: Select the SQL Server connector</strong></p><p>Search for SQL Server in the connector catalog. You will see multiple SQL Server connector options:</p><ul><li>Microsoft SQL Server (this is the CDC connector, the default for most use cases)</li><li>Microsoft SQL Server (Change Tracking) for environments where CDC is not available</li><li>SQL Server Batch Connector for views and custom queries</li><li>Platform-specific variants for Amazon RDS for SQL Server and Google Cloud SQL for SQL Server</li></ul><p>Select the connector that matches your environment based on the decision table in Section 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*XAhQ5tmjt92llHK3-a3JxA.png" /></figure><p><strong>Step 4: Configure the SQL Server connection</strong></p><p>Fill in the connection details for your SQL Server instance:</p><ul><li><strong>Server:</strong> The hostname or IP address of your SQL Server instance. For Azure SQL Database this is in the format your-server.database.windows.net. For RDS it is your RDS endpoint URL.</li><li><strong>Database:</strong> The name of the database you want to capture from.</li><li><strong>Username:</strong> The database user you created in the prerequisites section.</li><li><strong>Password:</strong> The password for that user.</li></ul><p>For self-hosted SQL Server the default port is 1433. If your instance uses a non-standard port, append it to the server address in the format hostname,port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HLiDjlgaTMc1m6eWLVjaow.png" /></figure><p>Click Next. Estuary tests the connection and if successful, auto-detects all tables that have CDC enabled.</p><p><strong>Step 5: Select tables to capture</strong></p><p>Estuary displays all tables with CDC enabled on the connected database. All tables are selected by default. Deselect any tables you do not want to include in this capture.</p><p>Each selected table becomes a separate Collection in Estuary, named using the format your-prefix/database-name/schema-name/table-name. You can rename collections at this stage if you want a different naming convention in your pipeline.</p><p><strong>Step 6: Save and publish the capture</strong></p><p>Click Save and Publish. Estuary immediately begins two processes running in parallel:</p><p>First it runs a backfill, reading all existing rows from each selected table and writing them to the corresponding Estuary collection. For large tables this may take several minutes to several hours depending on row count and network throughput.</p><p>Second it begins listening for new CDC events from the SQL Server transaction log. Changes that occur during the backfill are captured and queued so no data is missed during the initial load.</p><p>Once the backfill completes, the capture switches to pure CDC mode and propagates changes in real time.</p><h3>Part 2 — Create a Snowflake Materialization</h3><p><strong>Step 7: Create a new materialization</strong></p><p>From the capture confirmation screen, click Materialize Collections. Alternatively navigate to Materializations in the left menu and click New Materialization.</p><p><strong>Step 8: Select the Snowflake connector</strong></p><p>Search for Snowflake in the connector catalog and select Snowflake Data Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*PuIpid7OmxKaTyZSxe3UTQ.png" /></figure><p><strong>Step 9: Configure the Snowflake connection</strong></p><p>Fill in the Snowflake connection details you prepared in the prerequisites section:</p><ul><li><strong>Host:</strong> Your Snowflake account URL in the format orgname-accountname.snowflakecomputing.com</li><li><strong>Database:</strong> The Snowflake database where tables will be created</li><li><strong>Schema:</strong> The schema within that database</li><li><strong>Warehouse:</strong> The name of your Snowflake virtual warehouse</li><li><strong>User:</strong> The Snowflake username you created for Estuary</li><li><strong>Private Key:</strong> The contents of your private_key.p8 file</li></ul><p>Paste the full contents of the private key file, including the header and footer lines, into the Private Key field.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*RgR46JhQPdP3PV3Ri5p1sQ.png" /></figure><p><strong>Step 10: Bind collections to Snowflake tables</strong></p><p>Estuary displays the collections from your SQL Server capture and maps each one to a Snowflake table. By default the table names match the collection names. You can rename the target tables at this stage if you want a different naming convention in Snowflake.</p><p>For each binding you can also:</p><ul><li>Select specific fields to include or exclude from the materialized table</li><li>Apply in-flight transformations using Estuary Derivations before data reaches Snowflake</li><li>Toggle between standard merges and delta updates per table</li></ul><p><strong>Step 11: Choose between standard merges and delta updates</strong></p><p><strong>Standard merges</strong> are the default. Estuary writes data to a Snowflake staging table and then runs a MERGE statement to upsert rows into the target table. This keeps the target table as an accurate current-state representation of the source, with each row reflecting the latest version of that record. Standard merges handle inserts, updates, and deletes correctly and are the right choice for most use cases.</p><p><strong>Delta updates</strong> are an alternative mode for append-heavy workloads where you want every change event written as a separate row rather than merged into the current state. When delta updates are enabled, Estuary uses Snowpipe Streaming to write change events directly into Snowflake with near real-time latency, bypassing the staging and merge cycle. This reduces both latency and Snowflake compute costs for high-volume append workloads, but the target table will contain multiple rows per source record rather than a single current-state row.</p><p>Choose standard merges if you need the Snowflake table to mirror the current state of the SQL Server source. Choose delta updates if you need a complete event log of every change for audit purposes or stream processing in Snowflake.</p><p><strong>Step 12: Save and publish the materialization</strong></p><p>Click Save and Publish. Estuary begins materializing data from the SQL Server collections into Snowflake immediately.</p><p>For each table, Estuary creates the target table in Snowflake automatically if it does not already exist, inferring the schema from the captured SQL Server data. If the target table already exists, Estuary validates the schema compatibility and begins writing to it.</p><p>Within a few minutes of publishing, you should see rows appearing in your Snowflake tables. You can monitor the pipeline health, data volume, and latency from the Estuary dashboard.</p><h3>Verifying the Pipeline is Working</h3><p>After publishing, run these checks to confirm the pipeline is operating correctly.</p><p>Check that data is flowing in Estuary by navigating to the capture and checking the Documents Processed counter. This should be incrementing as rows are read from SQL Server.</p><p>Verify rows are appearing in Snowflake by querying one of the target tables:</p><pre>SELECT COUNT(*) FROM your_schema.your_table_name;</pre><p>Run this query a few minutes after publishing. The count should match the row count in your SQL Server source table once the initial backfill completes.</p><p>To verify real-time sync is working, insert a test row in SQL Server:</p><pre>INSERT INTO your_table_name (column1, column2)<br>VALUES (&#39;test_value_1&#39;, &#39;test_value_2&#39;);</pre><p>Then query Snowflake for that row within 30 seconds:</p><pre>SELECT * FROM your_schema.your_table_name<br>WHERE column1 = &#39;test_value_1&#39;;</pre><p>If the row appears in Snowflake within seconds, your real-time CDC pipeline is working correctly.</p><h3>Troubleshooting Common SQL Server to Snowflake Pipeline Failures</h3><p>Most pipeline failures fall into one of five categories: CDC configuration errors, permission issues, schema mismatches, transaction log problems, and Snowflake authentication failures. This section covers the specific errors you will encounter for each category and how to fix them.</p><h3>Problem 1: CDC Not Enabled Error</h3><p>This is the most common failure when first setting up the pipeline. Estuary connects to SQL Server successfully but reports that CDC is not enabled on the database or on specific tables.</p><p><strong>Error message in Estuary:</strong></p><pre>failed to read change data: CDC is not enabled on database &#39;your_database_name&#39;</pre><p>Or for table-level CDC:</p><pre>failed to capture table &#39;dbo.your_table_name&#39;: table is not enabled for CDC</pre><p><strong>Diagnosis:</strong></p><p>Check whether CDC is enabled at the database level:</p><pre>SELECT name, is_cdc_enabled<br>FROM sys.databases<br>WHERE name = &#39;your_database_name&#39;;</pre><p>Check whether CDC is enabled on specific tables:</p><pre>SELECT name, is_tracked_by_cdc<br>FROM sys.tables<br>WHERE is_tracked_by_cdc = 0;</pre><p>This query returns all tables that do not have CDC enabled. Any table in this list that you want to capture needs CDC enabled before Estuary can capture it.</p><p><strong>Fix:</strong></p><p>Enable CDC at the database level if not already done:</p><pre>USE your_database_name;<br>EXEC sys.sp_cdc_enable_db;</pre><p>Enable CDC on each table you want to capture:</p><pre>EXEC sys.sp_cdc_enable_table<br>  @source_schema = N&#39;dbo&#39;,<br>  @source_name = N&#39;your_table_name&#39;,<br>  @role_name = NULL,<br>  @supports_net_changes = 1;</pre><p>On Amazon RDS, use the RDS-specific stored procedure for database-level CDC:</p><pre>EXEC msdb.dbo.rds_cdc_enable_db &#39;your_database_name&#39;;</pre><h3>Problem 2: SQL Server Agent Not Running</h3><p>CDC requires the SQL Server Agent to run two background jobs. If the Agent is stopped, CDC change tables stop being populated and Estuary stops receiving new changes. This failure is particularly dangerous because it is silent: the pipeline appears healthy in Estuary but data stops flowing without any obvious error.</p><p><strong>How to detect this:</strong></p><p>If your pipeline suddenly stops delivering new data to Snowflake but Estuary is not reporting connection errors, check the SQL Server Agent status immediately.</p><p>Run this query to check whether the CDC jobs are running:</p><pre>SELECT job_id, name, enabled, date_modified<br>FROM msdb.dbo.sysjobs<br>WHERE name LIKE &#39;%cdc%&#39;;</pre><p>This returns the CDC capture and cleanup jobs. Both should show enabled = 1. If they show enabled = 0 or are missing entirely, the SQL Server Agent has stopped or was never started.</p><p><strong>Fix:</strong></p><p>Start the SQL Server Agent from SQL Server Management Studio by right-clicking SQL Server Agent in the Object Explorer and selecting Start.</p><p>From the command line:</p><pre>net start SQLSERVERAGENT</pre><p>After restarting the Agent, verify the CDC jobs resume by checking the job history:</p><pre>SELECT j.name, h.run_status, h.run_date, h.run_time<br>FROM msdb.dbo.sysjobs j<br>JOIN msdb.dbo.sysjobhistory h ON j.job_id = h.job_id<br>WHERE j.name LIKE &#39;%cdc%&#39;<br>ORDER BY h.run_date DESC, h.run_time DESC;</pre><p>A run_status of 1 means the job succeeded. A status of 0 means it failed and you need to investigate the job history for the specific error.</p><p>On Azure SQL Database the SQL Server Agent is managed automatically. If you are experiencing silent data gaps on Azure SQL, contact Microsoft support to verify the CDC Agent jobs are healthy on your instance.</p><h3>Problem 3: Transaction Log Truncated Before Estuary Could Read It</h3><p>If the SQL Server transaction log is truncated or recycled before Estuary reads all the changes from it, those changes are lost permanently and cannot be recovered. This is one of the most serious failure modes for CDC-based pipelines.</p><p><strong>Symptoms:</strong></p><p>Estuary reports an error similar to:</p><pre>LSN 0000:00000:0000 is no longer available in the transaction log.<br>The log may have been truncated before this position was read.</pre><p><strong>Why this happens:</strong></p><p>SQL Server automatically truncates the transaction log during log backups or when the database recovery model is set to Simple. If Estuary falls behind in processing changes, for example during a network outage or a period of high throughput, the log may be truncated before all changes are read.</p><p><strong>Fix:</strong></p><p>First, ensure your database is using the Full or Bulk-Logged recovery model, not Simple. Simple recovery model truncates the log aggressively and is incompatible with reliable CDC operation:</p><pre>ALTER DATABASE your_database_name<br>SET RECOVERY FULL;</pre><p>Second, increase the CDC retention period to give Estuary more time to catch up after any outage:</p><pre>EXEC sys.sp_cdc_change_table_retention<br>  @capture_instance = &#39;dbo_your_table_name&#39;,<br>  @retention = 10080;  -- 10080 minutes = 7 days</pre><p>Third, if you have already lost changes due to log truncation, you need to re-backfill the affected tables. In Estuary, navigate to the capture, select the affected tables, and trigger a re-backfill from the capture settings. This re-reads all current rows from the source table and overwrites the collection with fresh data.</p><h3>Problem 4: Permission Denied Errors</h3><p>Permission errors appear during the initial connection test or during capture operation if the Estuary database user is missing required privileges.</p><p><strong>Common error messages:</strong></p><pre>The server principal &#39;your_estuary_user&#39; is not able to access the database<br>&#39;your_database_name&#39; under the current security context.</pre><pre>SELECT permission was denied on the object &#39;your_table_name&#39;,<br>database &#39;your_database_name&#39;, schema &#39;dbo&#39;.</pre><pre>EXECUTE permission was denied on the object &#39;sp_cdc_enable_db&#39;,<br>database &#39;your_database_name&#39;, schema &#39;sys&#39;.</pre><p><strong>Fix:</strong></p><p>Run these permission grants in order. Connect to SQL Server as an administrator and execute:</p><pre>USE your_database_name;</pre><pre>-- Grant database state visibility<br>GRANT VIEW DATABASE STATE TO your_estuary_user;</pre><pre>-- Grant SELECT on all tables in the schema<br>GRANT SELECT ON SCHEMA::dbo TO your_estuary_user;</pre><pre>-- Grant access to CDC change tables<br>GRANT SELECT ON SCHEMA::cdc TO your_estuary_user;</pre><pre>-- Grant execute on CDC stored procedures<br>GRANT EXECUTE ON sys.sp_cdc_enable_db TO your_estuary_user;<br>GRANT EXECUTE ON sys.sp_cdc_enable_table TO your_estuary_user;</pre><p>For SQL Server 2022 and later, also grant:</p><pre>GRANT VIEW DATABASE PERFORMANCE STATE TO your_estuary_user;</pre><p>After granting permissions, return to Estuary and retest the connection. If the connection test passes but capture still fails with permission errors, check whether the specific tables you want to capture have object-level permissions that override the schema-level grant:</p><pre>SELECT * FROM sys.database_permissions<br>WHERE grantee_principal_id = USER_ID(&#39;your_estuary_user&#39;);</pre><h3>Problem 5: Schema Mismatch Between SQL Server and Snowflake</h3><p>Schema mismatches occur when the structure of a SQL Server table changes after the pipeline is already running. Adding a column, removing a column, or changing a column data type in SQL Server can cause the Snowflake materialization to fail or produce incorrect results.</p><p><strong>Symptoms:</strong></p><p>Estuary pauses the affected materialization and reports an error similar to:</p><pre>schema evolution detected: column &#39;new_column_name&#39; exists in source<br>but not in destination table &#39;your_snowflake_table&#39;</pre><p>Or data continues flowing but a new column in SQL Server is missing from Snowflake rows.</p><p><strong>How Estuary handles schema changes:</strong></p><p>Estuary detects schema changes automatically and pauses the affected task to alert you rather than silently writing incomplete data. This is intentional behavior that prevents corrupt data from reaching Snowflake.</p><p><strong>Fix for new columns added to SQL Server:</strong></p><p>When a new column is added to a SQL Server table, Estuary needs to update the Snowflake target table to include the new column before resuming. Navigate to the materialization in Estuary, click on the affected binding, and select Update Schema. Estuary adds the new column to the Snowflake table and resumes the materialization.</p><p>You can also add the column manually in Snowflake before resuming:</p><pre>ALTER TABLE your_schema.your_table_name<br>ADD new_column_name VARCHAR(255);</pre><p><strong>Fix for columns removed from SQL Server:</strong></p><p>When a column is removed from SQL Server, Estuary stops populating that column in Snowflake but does not drop it from the Snowflake table. The column remains in Snowflake with NULL values for all new rows. This is safe behavior that preserves historical data in Snowflake even after the source column is gone.</p><p><strong>Fix for data type changes:</strong></p><p>Data type changes are the most disruptive schema change. If a column changes from INTEGER to VARCHAR in SQL Server, the existing Snowflake column type may be incompatible with the new values. In this case you need to alter the Snowflake column type manually:</p><pre>ALTER TABLE your_schema.your_table_name<br>ALTER COLUMN changed_column_name VARCHAR(255);</pre><p>Then resume the paused materialization in Estuary.</p><h3>Problem 6: Snowflake Authentication Failure</h3><p>Key-pair authentication failures are common on first setup because the public key must be formatted correctly when assigned to the Snowflake user.</p><p><strong>Error message:</strong></p><pre>JWT token is invalid. Error: Failed to validate token.</pre><p>Or:</p><pre>Authentication failed for user &#39;your_snowflake_user&#39;.<br>Incorrect username or password was specified.</pre><p><strong>Common causes and fixes:</strong></p><p>The most frequent cause is incorrect public key formatting. When assigning the public key to the Snowflake user, you must strip the header and footer lines from the public key file. The value you pass to RSA_PUBLIC_KEY should contain only the base64-encoded key content with no line breaks:</p><pre>-- Incorrect: includes header/footer<br>ALTER USER estuary_user SET RSA_PUBLIC_KEY=&#39;-----BEGIN PUBLIC KEY-----<br>MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ...<br>-----END PUBLIC KEY-----&#39;;</pre><pre>-- Correct: only the key content, no line breaks<br>ALTER USER estuary_user SET RSA_PUBLIC_KEY=&#39;MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ...&#39;;</pre><p>The second common cause is a mismatch between the private key file used in Estuary and the public key assigned to the Snowflake user. They must be generated as a pair. If you regenerate the key pair, you must update both the Snowflake user with the new public key and the Estuary connector configuration with the new private key.</p><p>Verify the key is correctly assigned to the Snowflake user:</p><pre>DESC USER estuary_user;</pre><p>Look for the RSA_PUBLIC_KEY_FP field in the output. If it shows null, the public key was not assigned correctly and you need to run the ALTER USER command again.</p><h3>SQL Server to Snowflake on Cloud-Hosted and Enterprise Environments</h3><p>The setup steps in the previous section cover the general case. If you are running SQL Server on a managed cloud platform or in an enterprise environment with specific network and security requirements, there are additional configuration details that affect how the pipeline is set up and what connector options are available to you.</p><h3>Azure SQL Database</h3><p>Azure SQL Database is the most common managed SQL Server environment for enterprises already running on Microsoft infrastructure. It supports CDC natively but has several differences from self-hosted SQL Server that affect pipeline setup.</p><p><strong>Edition requirements:</strong></p><p>CDC is available on Azure SQL Database General Purpose, Business Critical, and Hyperscale service tiers. It is not available on the Basic or Standard serverless tiers. If you are on a serverless tier and need CDC, you need to upgrade your service tier or use the Change Tracking connector instead.</p><p><strong>Enabling CDC on Azure SQL Database:</strong></p><p>The database-level CDC enable command requires db_owner membership on Azure SQL Database, unlike self-hosted SQL Server where sysadmin is required:</p><pre>-- Add Estuary user to db_owner role<br>ALTER ROLE db_owner ADD MEMBER your_estuary_user;</pre><pre>-- Enable CDC at database level<br>USE your_database_name;<br>EXEC sys.sp_cdc_enable_db;</pre><p>Enable CDC on individual tables using the standard command:</p><pre>EXEC sys.sp_cdc_enable_table<br>  @source_schema = N&#39;dbo&#39;,<br>  @source_name = N&#39;your_table_name&#39;,<br>  @role_name = NULL,<br>  @supports_net_changes = 1;</pre><p><strong>Network configuration:</strong></p><p>Azure SQL Database uses a firewall to control inbound connections. You need to add Estuary’s IP addresses to the Azure SQL firewall allowlist.</p><p>In the Azure Portal, navigate to your SQL Server resource, select Networking under Security, and add Estuary’s IP addresses as firewall rules. The full list of Estuary IP addresses is available at <a href="https://docs.estuary.dev/reference/allow-ip-addresses/">https://docs.estuary.dev/reference/allow-ip-addresses/</a>.</p><p>If your Azure SQL Database is configured with a private endpoint and is not publicly accessible, you need to use Estuary’s private deployment option to run the connector within your Azure virtual network. Contact Estuary support to configure this.</p><p><strong>Automatic Capture Instance Management:</strong></p><p>Azure SQL Database supports Estuary’s Automatic Capture Instance Management feature, which automatically updates CDC capture instances when SQL Server table schemas change. This prevents the common production failure where a schema change in SQL Server causes the CDC capture instance to stop tracking the updated table structure.</p><p>To enable Automatic Capture Instance Management, check the corresponding option in the Estuary capture configuration screen. This requires granting the Estuary user additional permissions:</p><pre>GRANT ALTER ON DATABASE::your_database_name TO your_estuary_user;</pre><h3>Amazon RDS for SQL Server</h3><p>Amazon RDS for SQL Server has the most significant differences from self-hosted SQL Server in terms of CDC setup, primarily because RDS users do not have sysadmin privileges.</p><p><strong>Edition requirements:</strong></p><p>CDC is only available on RDS SQL Server Enterprise and Developer editions. It is not available on Standard or Web editions. This is a hard limitation imposed by Microsoft licensing, not by RDS configuration. Before investing time in CDC setup on RDS, verify your edition:</p><pre>SELECT SERVERPROPERTY(&#39;Edition&#39;);</pre><p>If the output shows Standard Edition, you have two options: upgrade to Enterprise edition, or use the Change Tracking connector which is available on all RDS SQL Server editions.</p><p><strong>Enabling CDC on Amazon RDS:</strong></p><p>Use the RDS-specific stored procedure for database-level CDC rather than the standard sys.sp_cdc_enable_db:</p><pre>EXEC msdb.dbo.rds_cdc_enable_db &#39;your_database_name&#39;;</pre><p>Enabling CDC on individual tables uses the standard SQL Server command:</p><pre>EXEC sys.sp_cdc_enable_table<br>  @source_schema = N&#39;dbo&#39;,<br>  @source_name = N&#39;your_table_name&#39;,<br>  @role_name = NULL,<br>  @supports_net_changes = 1;</pre><p><strong>Automated backups requirement:</strong></p><p>RDS requires automated backups to be enabled for CDC to function. Without automated backups, RDS cannot maintain the transaction log in a state that supports CDC reads. Enable automated backups in the RDS console under the Maintenance and Backups section, or via the AWS CLI:</p><pre>aws rds modify-db-instance \<br>  --db-instance-identifier your-rds-instance \<br>  --backup-retention-period 7 \<br>  --apply-immediately</pre><p>Set the retention period to at least 3 days. A 7-day retention period is recommended for production pipelines.</p><p><strong>Network configuration:</strong></p><p>RDS instances are typically deployed inside a VPC with a security group controlling inbound access. Add Estuary’s IP addresses to the inbound rules of your RDS security group on port 1433.</p><p>In the AWS console, navigate to your RDS instance, click on the VPC security group, select Inbound Rules, and add a Custom TCP rule for port 1433 with Estuary’s IP addresses as the source. The full IP list is at <a href="https://docs.estuary.dev/reference/allow-ip-addresses/">https://docs.estuary.dev/reference/allow-ip-addresses/</a>.</p><p>For RDS instances without public accessibility, use Estuary’s private deployment option or configure a VPC peering connection between your VPC and Estuary’s infrastructure.</p><p><strong>Using the RDS-specific Estuary connector:</strong></p><p>Estuary provides a dedicated connector variant for Amazon RDS for SQL Server at <a href="https://docs.estuary.dev/reference/Connectors/capture-connectors/SQLServer/amazon-rds-sqlserver/">https://docs.estuary.dev/reference/Connectors/capture-connectors/SQLServer/amazon-rds-sqlserver/</a>. This connector handles the RDS-specific stored procedures and permission model automatically. Select the RDS connector variant in the Estuary catalog rather than the generic SQL Server connector when connecting to an RDS instance.</p><h3>Google Cloud SQL for SQL Server</h3><p>Google Cloud SQL for SQL Server supports CDC on Enterprise and Enterprise Plus editions. The Standard edition does not support CDC.</p><p><strong>Enabling CDC on Cloud SQL:</strong></p><p>The CDC enable process on Cloud SQL is the same as self-hosted SQL Server:</p><pre>USE your_database_name;<br>EXEC sys.sp_cdc_enable_db;</pre><pre>EXEC sys.sp_cdc_enable_table<br>  @source_schema = N&#39;dbo&#39;,<br>  @source_name = N&#39;your_table_name&#39;,<br>  @role_name = NULL,<br>  @supports_net_changes = 1;</pre><p><strong>Service account permissions:</strong></p><p>Cloud SQL manages the SQL Server Agent using a Google-managed service account. In some Cloud SQL configurations, this service account may not have sufficient permissions to run CDC jobs automatically. If you enable CDC on the database and tables but see no data flowing through the pipeline, verify the CDC jobs are running:</p><pre>SELECT j.name, h.run_status, h.run_date, h.run_time<br>FROM msdb.dbo.sysjobs j<br>JOIN msdb.dbo.sysjobhistory h ON j.job_id = h.job_id<br>WHERE j.name LIKE &#39;%cdc%&#39;<br>ORDER BY h.run_date DESC, h.run_time DESC;</pre><p>If the CDC jobs are failing, open a support case with Google Cloud to request that the Cloud SQL service account be granted the necessary permissions to manage CDC Agent jobs on your instance.</p><p><strong>Network configuration:</strong></p><p>Cloud SQL instances use authorized networks to control inbound connections. Add Estuary’s IP addresses to the authorized networks list for your Cloud SQL instance.</p><p>In the Google Cloud Console, navigate to your Cloud SQL instance, select Connections, then Networking, and add Estuary’s IP addresses under Authorized Networks. The full list is at <a href="https://docs.estuary.dev/reference/allow-ip-addresses/">https://docs.estuary.dev/reference/allow-ip-addresses/</a>.</p><p>For Cloud SQL instances configured with private IP only, use Estuary’s private deployment option or configure VPC peering between your Google Cloud network and Estuary’s infrastructure.</p><p><strong>Using the Cloud SQL-specific Estuary connector:</strong></p><p>Estuary provides a <a href="https://docs.estuary.dev/reference/Connectors/capture-connectors/SQLServer/google-cloud-sql-sqlserver/">dedicated connector</a> for Google Cloud SQL for SQL Server. Select this connector variant in the Estuary catalog when connecting to a Cloud SQL instance.</p><h3>Enterprise Security and Compliance Considerations</h3><p><strong>Private deployments:</strong></p><p>If your SQL Server instance is not publicly accessible and cannot be reached by Estuary’s shared cloud infrastructure, Estuary supports private deployment options including Bring Your Own Cloud (BYOC) and fully private deployments within your own VPC or virtual network. In these configurations, the Estuary connector runs inside your network and data never leaves your infrastructure unencrypted or through shared systems.</p><p><a href="https://estuary.dev/contact-us/">Contact Estuary</a> to discuss private deployment options for your environment.</p><p><strong>Data encryption in transit:</strong></p><p>All connections between Estuary and SQL Server use TLS encryption. For SQL Server instances that require certificate-based TLS verification, you can configure the trusted certificate in the Estuary connector settings. For Azure SQL Database and RDS, TLS is enforced by default and no additional configuration is required.</p><p><strong>Credential management:</strong></p><p>For production deployments, avoid using database administrator accounts as the Estuary connector credentials. Create a dedicated database user with the minimum permissions required as described in the prerequisites section. Rotate credentials regularly and update the Estuary connector configuration when credentials change.</p><p><strong>Role-based access control in Snowflake:</strong></p><p>For enterprise Snowflake deployments using role-based access control, ensure the Estuary Snowflake role has only the permissions it needs on the specific database and schema where data will be materialized. Avoid granting ACCOUNTADMIN or SYSADMIN roles to the Estuary user.</p><p>The permission grants in the prerequisites section follow the principle of least privilege and are appropriate for enterprise Snowflake deployments.</p><h3>Comparing SQL Server to Snowflake Pipeline Options</h3><p>Most data engineering teams evaluating this use case are choosing between managed ELT platforms like Estuary, Fivetran, and Airbyte; Microsoft-native tools like Azure Data Factory and SSIS; or manual scripting approaches. Each has legitimate strengths and real weaknesses.</p><h4><strong>Estuary</strong></h4><p>Estuary uses log-based CDC to read directly from the SQL Server transaction log, capturing every insert, update, and delete within milliseconds and materializing them continuously into Snowflake. It supports all three SQL Server capture mechanisms, propagates hard deletes correctly, detects schema changes automatically, and stores data in your own cloud bucket so nothing is lost during destination outages. Pricing is $0.50 per GB of change data plus $0.14 per connector hour, which is significantly more predictable than row-based pricing at scale.</p><h4><strong>Fivetran</strong></h4><p>Fivetran is a mature managed ELT platform with a well-tested SQL Server connector that handles schema changes reasonably well. The primary limitation is pricing: Fivetran charges per monthly active row, which scales quickly for large databases with frequent updates. It also does not support Snowpipe Streaming, meaning all data lands in Snowflake through a standard batch merge cycle with latency measured in minutes.</p><h4><strong>Airbyte</strong></h4><p>Airbyte is an open-source ELT platform using Debezium for SQL Server CDC. The self-hosted version is free but requires you to provision and operate the infrastructure yourself including Kubernetes or Docker deployments and connector updates. Airbyte Cloud removes that burden but introduces per-row pricing similar to Fivetran.</p><h4><strong>Azure Data Factory</strong></h4><p>Azure Data Factory integrates natively with Azure SQL Database and other Microsoft services, making it a natural fit for teams already in the Azure ecosystem. It does not support log-based CDC natively, meaning it cannot capture hard deletes or guarantee exactly-once delivery. Setup is more complex than managed ELT platforms and requires familiarity with ADF concepts including linked services, datasets, and triggers.</p><h4><strong>SSIS</strong></h4><p>SSIS is Microsoft’s on-premises ETL tool and the standard for SQL Server data integration for over two decades. Loading data into Snowflake from SSIS requires a third-party ODBC driver and custom components. It is fundamentally batch-oriented with no real-time CDC support, and running it in the cloud requires an Azure-SSIS Integration Runtime which adds ADF costs and complexity.</p><figure><img alt="Estuary vs Airbyte vs Fivetran vs SSIS for SQL Server to Snowflake" src="https://cdn-images-1.medium.com/max/750/1*Ms4Ff7j1TvwOxn1hQwzqAQ.png" /></figure><p><strong>When to use each tool:</strong></p><p>Choose Estuary when real-time data freshness matters, you need to handle deletes correctly, your data volumes are large enough that row-based pricing becomes expensive, or you need to support multiple SQL Server environments including RDS and Cloud SQL from a single platform.</p><p>Choose Fivetran when your team prioritizes the simplest possible setup experience, your data volumes are moderate and predictable, and the higher per-row cost is acceptable within your budget.</p><p>Choose Airbyte when you want open-source flexibility, have strong platform engineering resources to operate the infrastructure, and need the ability to customize connector behavior at the source level.</p><p>Choose Azure Data Factory when your SQL Server source is Azure SQL Database, your team is already operating within the Azure ecosystem, and you need native integration with other Azure services in your pipeline.</p><p>Choose SSIS when you have existing SSIS packages to migrate to Snowflake and your use case is batch-oriented with no real-time requirements.</p><h3>Conclusion</h3><p>Moving data from SQL Server to Snowflake is a common but non-trivial engineering challenge. SQL Server is optimized for transactional workloads and Snowflake for analytical queries, and keeping them in sync correctly means handling not just inserts but updates, deletes, schema changes, and the operational realities of production databases running on managed cloud platforms.</p><p>The right approach depends on your specific situation:</p><ul><li><strong>Real-time sync with full CDC support</strong> → Estuary CDC connector</li><li><strong>Tables with computed columns or no primary key requirement for log-based CDC</strong> → Estuary Change Tracking connector</li><li><strong>SQL Server views or custom queries</strong> → Estuary Batch Query connector</li><li><strong>Azure SQL Database environment</strong> → Estuary with Azure SQL Database connector variant</li><li><strong>Amazon RDS for SQL Server</strong> → Estuary with RDS-specific connector variant</li><li><strong>Google Cloud SQL for SQL Server</strong> → Estuary with Cloud SQL connector variant</li><li><strong>One-time historical migration only</strong> → SnowSQL with BCP export</li><li><strong>Existing Azure Data Factory investment</strong> → Azure Data Factory with Change Tracking</li></ul><p>For ongoing real-time sync, CDC-based pipelines are the right architecture. Full table scans and batch file exports do not scale, do not handle deletes, and introduce latency that makes data in Snowflake increasingly stale over time. The manual methods covered in older guides for this use case are appropriate for one-time migrations but should not be the foundation of a production data pipeline.</p><h3>Start Syncing SQL Server to Snowflake in Real Time</h3><p>Estuary connects to your SQL Server instance using CDC, captures every insert, update, and delete as it happens, and keeps your Snowflake tables in sync continuously with millisecond latency.</p><p>No Kafka cluster to manage. No batch schedules to maintain. No full table scans on your production database. No data loss during outages.</p><p>Setup takes under 30 minutes. Your first pipeline is free. Start building at <a href="https://dashboard.estuary.dev/">dashboard.estuary.dev</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01a121049ae2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From OLTP to OLAP: Streaming Databases into MotherDuck with Estuary]]></title>
            <link>https://medium.com/@estuarydata/streaming-databases-into-motherduck-with-estuary-1741f26258d1?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/1741f26258d1</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[real-time-data]]></category>
            <category><![CDATA[motherduck]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 06:38:47 GMT</pubDate>
            <atom:updated>2026-03-24T12:24:57.137Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>DuckDB is quickly becoming one of the most talked about analytical databases. It is fast, lightweight, and designed to run inside your applications, often described as <em>SQLite for analytics</em>. While it works great on a laptop for local analysis, production workflows need something more scalable.</p><p>That is where <strong>MotherDuck</strong> comes in. MotherDuck takes the power of DuckDB and brings it to the cloud. It adds collaboration features, secure storage, and a serverless model that lets teams use DuckDB at scale without worrying about infrastructure.</p><p>In this guide, you will learn how to stream data from an OLTP system into MotherDuck using <strong>Estuary</strong>. This approach lets you run analytical queries on fresh data without putting extra load on your production database.</p><p><strong>🎥Prefer watching instead of reading? Check out the short walkthrough below.</strong></p><p><a href="https://www.youtube.com/watch?v=2flyH-rjmqI">https://www.youtube.com/watch?v=2flyH-rjmqI</a></p><h3>Why DuckDB Is Gaining Traction</h3><p><a href="https://duckdb.org/">DuckDB</a> is an open source analytical database designed with a clear goal: to make complex queries fast and simple without heavy infrastructure. Instead of being a traditional client-server database, DuckDB is embedded. It runs inside the host process, which reduces overhead and makes it easy to integrate directly into applications, notebooks, or scripts.</p><p>Several features stand out:</p><ul><li><strong>In-process operation</strong>: Similar to SQLite, DuckDB runs where your code runs. This avoids network calls and gives you low-latency access to data.</li><li><strong>Columnar and vectorized execution</strong>: DuckDB is optimized for analytical queries. Its execution model speeds up heavy operations such as aggregations, filtering, and joins on large tables.</li><li><strong>Portability and extensibility</strong>: It has a very small footprint and no external dependencies. At the same time, extensions support advanced data types and file formats, including Parquet, JSON, and geospatial data.</li><li><strong>Seamless file access</strong>: DuckDB can query local files directly without requiring an ETL pipeline. For example, you can run SQL queries on CSV or Parquet files straight from disk.</li><li><strong>Integration with data science tools</strong>: DuckDB connects smoothly with Python, R, and Jupyter notebooks, which makes it a favorite among data scientists. Because of this balance of speed, flexibility, and simplicity, DuckDB is increasingly used as the analytical layer in modern data pipelines, as well as for ad hoc analysis by engineers and analysts.</li></ul><h3>MotherDuck: DuckDB in the Cloud</h3><p>DuckDB is excellent for local analysis, but production environments often require more than a local embedded database. Teams need collaboration, security, and scalability. That is where <a href="https://motherduck.com/"><strong>MotherDuck</strong></a> comes in.</p><p>MotherDuck is a managed cloud service built on top of DuckDB. It extends the same fast and lightweight query engine into a serverless environment while adding features that make it practical for organizations:</p><ul><li><strong>Serverless architecture</strong>: No servers to manage and no infrastructure overhead. MotherDuck scales automatically with your workloads.</li><li><strong>Collaboration</strong>: Share queries, results, and datasets with teammates in real time. This makes it easier for teams to work from the same source of truth.</li><li><strong>Secure secret storage</strong>: Manage credentials and connections safely in the cloud.</li><li><strong>Integration with pipelines</strong>: Platforms like Estuary can write directly into MotherDuck, which means your data is always fresh and ready for analysis. In practice, MotherDuck gives teams the best of both worlds: the performance and simplicity of DuckDB combined with the scalability and ease of use of a modern cloud service.</li></ul><h3>OLTP → OLAP: The Core Use Case</h3><p>Most production applications run on OLTP databases such as PostgreSQL, MySQL, or MongoDB. These systems are designed for fast inserts, updates, and deletes. They keep applications responsive but are not optimized for running heavy analytical queries.</p><p>Running aggregations, joins, or reports directly on an OLTP database can:</p><ul><li>Slow down your application performance.</li><li>Increase operational risk by adding load to your production environment.</li><li>Limit the ability of analysts and data scientists to explore data freely.</li></ul><p>This is why organizations separate <strong>OLTP (transactional)</strong> systems from <strong>OLAP (analytical)</strong> systems. The OLTP database handles day-to-day transactions, while an OLAP database is dedicated to complex queries and reporting.</p><p>DuckDB, and by extension MotherDuck, fits perfectly as an OLAP layer. With <a href="https://estuary.dev/product/"><strong>Estuary</strong></a>, you can capture real-time changes from your OLTP source and stream them into MotherDuck. This way, analysts always have up-to-date data to query without touching the production database.</p><h3>Setting Up Estuary with MotherDuck</h3><p>In this section, we’ll walk through the process of connecting your OLTP source to MotherDuck using Estuary. The setup is straightforward and only takes a few steps.</p><h3>Step 1: Prepare Your Source in Estuary</h3><p>Before you can send data to MotherDuck, you need a source system connected in Estuary. A source could be any OLTP database such as PostgreSQL, MySQL, or MongoDB. Estuary also supports SaaS applications, event streams, and file-based sources.</p><p>To prepare a source:</p><ol><li>Go to the <strong>Captures</strong> tab in the Estuary dashboard.</li><li>Create a new capture and select the connector for your source system.</li><li>Provide the connection details (for example, host, port, database name, and credentials).</li><li>Save and publish the capture.</li></ol><p>Once this is done, Estuary begins ingesting data from your source and continuously tracks new changes. This stream of data is stored in an internal collection, which you will later connect to MotherDuck.</p><p><em>Tip</em>: If you are new to Estuary, try starting with a simple dataset (like PostgreSQL or a CSV file) before moving on to production-scale sources.</p><h3>Step 2: Create a MotherDuck Materialization</h3><p>With your source capture running, the next step is to <a href="https://docs.estuary.dev/reference/Connectors/materialization-connectors/motherduck/">set up MotherDuck</a> as the destination for your data. In Estuary, this is called a <strong>materialization</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*MsSISSTFtyd0FPji.png" /></figure><p>To create one:</p><ol><li>Go to the <strong>Destinations</strong> tab in the Estuary dashboard.</li><li>Click <strong>New Materialization</strong>.</li><li>Search for <strong>MotherDuck</strong> in the connector catalog and select it.</li><li>Give the materialization a descriptive name so you can easily identify it later.</li></ol><p>At this point, you will see the configuration screen for the MotherDuck connector. This is where you provide the details that allow Estuary to stage data and deliver it into your MotherDuck database.</p><p>In the next step, you’ll configure <strong>AWS S3 staging</strong>, which Estuary uses as a temporary storage location for data loads.</p><h3>Step 3: Configure AWS S3 Staging</h3><p>The MotherDuck connector in Estuary uses an Amazon S3 bucket as a staging area. Data is first written to S3, then loaded into MotherDuck. This design ensures high reliability and scalability for large datasets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ZIBQt_EzUfMAxVk7.png" /></figure><p>Here’s what you need to set up:</p><ol><li><strong>Create or choose an S3 bucket</strong></li></ol><ul><li>Note down the bucket name and its region.</li><li>Optionally, you can define a prefix if you want Estuary to organize staged files under a specific folder.</li></ul><p><strong>2. Set up IAM permissions</strong></p><ul><li><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/id_users.html">Create or use an IAM user</a> that has read and write access to the S3 bucket.</li><li>Attach a policy with at least the following actions:</li><li>s3:PutObject</li><li>s3:GetObject</li><li>s3:ListBucket</li></ul><p><strong>3. Generate access keys</strong></p><ul><li>In the AWS console, go to the IAM user’s <strong>Security Credentials</strong> tab.</li><li>Create an access key and secret key.</li><li>Copy these values into the Estuary dashboard when configuring the MotherDuck connector.</li></ul><p>At this point, Estuary knows where to stage data and has the permissions needed to write into your S3 bucket.</p><p><em>Tip</em>: For production, avoid using a root account. Always generate access keys from an IAM user with the least privileges necessary.</p><h3>Step 4: Set Up MotherDuck</h3><p>Now that AWS S3 staging is ready, it’s time to configure the MotherDuck side of the connection. This step makes sure MotherDuck can pull the staged data into your chosen database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*BsV-uqCDbkq9AsFj.png" /></figure><ol><li><strong>Generate an access token</strong></li></ol><ul><li>Log in to your MotherDuck account.</li><li>Open the <strong>Settings</strong> menu and go to <strong>Access Tokens</strong>.</li><li>Create a new token and copy it into the Estuary connector configuration.</li></ul><p><strong>2. Provide AWS credentials to MotherDuck</strong></p><ul><li>MotherDuck needs permission to read the staged files from your S3 bucket.</li><li>You can provide these credentials either:</li></ul><p>a. By running SQL statements inside MotherDuck:</p><pre>CREATE SECRET aws_access_key &#39;&lt;ACCESS_KEY&gt;&#39;;  CREATE SECRET aws_secret_key &#39;&lt;SECRET_KEY&gt;&#39;;</pre><p>b. Or by entering them through the MotherDuck UI.</p><p><strong>3. Choose a target database</strong></p><ul><li>Select an existing database in your MotherDuck account, or create a new one.</li><li>Copy its name into the Estuary configuration.</li></ul><p><strong>4. Decide on delete behavior</strong></p><ul><li><strong>Soft deletes</strong>: Mark a record as deleted but keep it in the table for historical analysis.</li><li><strong>Hard deletes</strong>: Remove the record entirely.</li><li>Choose the option that best matches your analytics or compliance needs.</li></ul><h3>Step 5: Publish and Stream Data</h3><p>Once your MotherDuck materialization is configured, the final step is to publish it and start the data flow.</p><ol><li><strong>Select your source data</strong></li></ol><ul><li>Link an entire capture (for example, your PostgreSQL database)</li><li>Or choose specific collections you want to replicate.</li></ul><p><strong>2. Review the configuration</strong></p><ul><li>Double-check that your S3 credentials, MotherDuck token, and database name are correct.</li><li>Make sure you selected the right delete behavior (soft or hard).</li></ul><p><strong>3. Save and publish</strong></p><ul><li>Click <strong>Next</strong>, then <strong>Save &amp; Publish</strong>.</li><li>Estuary will immediately begin streaming data from your OLTP source into MotherDuck.</li></ul><p>From here, data updates in your source will flow continuously into your MotherDuck database. This gives you a near real-time OLAP environment for analytics, without adding load to your production system.</p><h3>Step 6: Query in MotherDuck</h3><p>With the connector published, your data is now flowing into MotherDuck. The final step is to start exploring it.</p><ol><li>Open the <strong>MotherDuck dashboard</strong> and go to <strong>Notebooks</strong>.</li><li>Select the database you configured as the destination.</li><li>Run queries using DuckDB’s familiar <a href="https://duckdb.org/docs/stable/sql/introduction.html">SQL syntax</a>.</li></ol><p>For example, if you replicated an orders table from your OLTP database, you could analyze top customers like this:</p><pre>SELECT customer_id, COUNT(*) AS order_count<br>FROM orders<br>GROUP BY customer_id<br>ORDER BY order_count DESC<br>LIMIT 10;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*5gXdONtckpklgnxJ.png" /></figure><h3>Wrap-Up</h3><p>By combining Estuary and MotherDuck, you can build a modern pipeline that keeps analytics separate from your production workload without adding extra complexity.</p><ul><li>Estuary captures real-time changes from your OLTP databases.</li><li>Data is staged in S3 for reliability.</li><li>MotherDuck provides a cloud-native DuckDB environment where your team can query and collaborate.</li></ul><p>This setup is fast to configure, easy to maintain, and scales with your needs. Instead of managing batch jobs or writing custom scripts, you can focus on analysis and insights.</p><h3>✅ Key Takeaways</h3><ul><li>DuckDB is lightweight and powerful for analytics, while MotherDuck brings it to the cloud for collaboration and scalability.</li><li>Estuary makes it simple to stream data from OLTP systems into MotherDuck in real time.</li><li>AWS S3 is used as a staging layer, requiring IAM permissions and credentials.</li><li>Once published, you can query fresh data in MotherDuck notebooks using DuckDB SQL.</li></ul><p>👉 Ready to try it yourself? <a href="https://dashboard.estuary.dev/register">Explore Estuary</a> and see how quickly you can start streaming data into MotherDuck.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1741f26258d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Estuary Is a Modern Alternative to Debezium and Traditional ETL Tools]]></title>
            <link>https://medium.com/@estuarydata/why-estuary-is-a-modern-alternative-to-debezium-and-traditional-etl-tools-1c046c82d0f3?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/1c046c82d0f3</guid>
            <category><![CDATA[debezium]]></category>
            <category><![CDATA[estuary-flow]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Wed, 03 Sep 2025 04:38:28 GMT</pubDate>
            <atom:updated>2026-08-05T11:41:44.925Z</atom:updated>
            <content:encoded><![CDATA[<p>Modern businesses are under constant pressure to make decisions faster, serve customers better, and stay ahead of the competition. Data is at the center of this shift. The way an organization moves, transforms, and consumes data directly affects how quickly insights can be turned into action.</p><p>For many teams, the first step into real-time data movement often starts with open-source tools like Debezium. Debezium is a powerful change data capture (CDC) engine, but it relies on Apache Kafka and may need to be paired with other systems such as Flink in order to deliver a complete pipeline. On the other end of the spectrum are batch-based ETL platforms that reprocess large volumes of data at scheduled intervals, which can introduce both latency and cost inefficiencies.</p><p>Estuary takes a different approach. It is built as a unified platform that captures changes from operational systems, processes them in real time, and makes them available in the destinations where they are needed most. Whether that means streaming data into warehouses, powering analytics dashboards, or serving downstream applications, Estuary is designed to handle it with efficiency and scale.</p><p>In this article, we will look at why teams choose Estuary as a modern alternative to both Debezium and traditional ETL tools. We will dig into deployment options, schema evolution, transformations, cost efficiency, and the broader developer and business benefits that come with using Estuary.</p><h3>On-Premises and Deployment Flexibility</h3><p>Deployment options are one of the first considerations for any data infrastructure. Different organizations have different needs. A startup might prioritize ease of use, while a financial institution will care deeply about security and regulatory compliance.</p><p>With Debezium, on-premises deployment is fully in your hands. You run the connectors yourself — generally alongside Kafka, Zookeeper, and Kafka Connect — and you manage all the operational overhead. This gives maximum control, but it also means the team is responsible for scaling, upgrades, monitoring, and high availability. For smaller teams, that burden can become a distraction from core product work.</p><p>Estuary was designed to give teams the best of both worlds. The fully managed SaaS offering makes it easy to get started quickly, with a production-grade control plane and data plane already in place. For enterprises that need stricter boundaries, Estuary provides multiple options:</p><figure><img alt="BYOC Deployments" src="https://cdn-images-1.medium.com/max/1024/1*nv36KQq4oHAdCgkKEDMI7Q.png" /><figcaption>BYOC Deployments</figcaption></figure><ul><li><strong>Private Deployment</strong>: Estuary runs in a dedicated environment managed by Estuary, isolated from other tenants, with the same guarantees around security and reliability.</li><li><strong>Bring Your Own Cloud (BYOC)</strong>: Teams can deploy Estuary inside their own cloud infrastructure. This allows them to keep data movement within their VPC, satisfying compliance requirements without sacrificing functionality.</li><li><strong>Self-Hosted (Business Source License)</strong>: Estuary can also be deployed entirely by the customer. While support and documentation are still evolving, this option provides maximum control for organizations with advanced internal engineering capacity.</li></ul><p>The architecture makes this flexibility possible. Estuary separates the control plane, which manages configurations and orchestration, from the data plane, which executes captures, materializations, and transformations. Importantly, the control plane does not store or see your data. It only coordinates with the data plane, which can process and store data to your chosen cloud storage.</p><p>For teams weighing deployment strategies, Estuary offers a continuum of choices, from quick SaaS onboarding to fully private cloud deployment. This makes it possible to start small and move toward stricter environments as the business grows, without rebuilding pipelines.</p><h3>Schema Evolution Made Simple</h3><p>One of the most painful realities of managing data pipelines is dealing with schema changes. Columns get added, types get modified, and entire tables can be restructured as applications evolve. In most traditional pipelines, these changes can break downstream jobs, leading to delays, manual intervention, or even data loss.</p><p>Debezium provides strong CDC capabilities but does not take full responsibility for schema evolution. You can configure limited message-level schema evolution if you manage a Kafka Schema Registry, or rely on downstream consumers or additional tools in the stack to handle changes. This often means engineers need to write custom logic to handle evolving schemas and ensure nothing breaks.</p><p>Estuary approaches the problem differently. <a href="https://docs.estuary.dev/concepts/advanced/evolutions/">Schema evolution</a> is built directly into the platform:</p><ul><li><strong>Validation before publishing</strong>: Any time a schema changes, Estuary runs a validation process. Downstream materializations are checked to confirm they can accept the new fields or types.</li><li><strong>Automatic versioning</strong>: If a schema change is incompatible with an existing materialization, Estuary can automatically create a new version of the table or dataset (for example, orders_v2, orders_v3). This allows the pipeline to adapt without breaking existing consumers.</li><li><strong>Backfill support</strong>: When a schema change requires a new version, Estuary automatically backfills data so the new destination has a consistent and complete view.</li><li><strong>Flexible management</strong>: Changes can be handled manually via the CLI or UI, or automated with features like AutoDiscover for certain connectors.</li></ul><p>The result is a system that absorbs schema drift instead of collapsing under it. Engineers spend less time firefighting and more time building. For organizations where schema changes are frequent, this translates directly into reliability and confidence that downstream analytics or applications will continue working even as the source systems evolve.</p><h3>Transformations That Scale</h3><p>Data rarely arrives in exactly the form you want to use it. Raw operational data often needs filtering, enrichment, or aggregation before it can deliver value. Traditional ELT platforms push this transformation step to the end of the pipeline, usually inside a warehouse or lakehouse. That approach works, but it adds latency and increases compute costs since the same operations are repeatedly applied to large datasets.</p><p>Debezium, while excellent at capturing changes, does not include transformation capabilities. Teams typically layer on other systems such as Kafka Streams, Flink, or Spark, which introduces additional infrastructure to manage and more points of failure.</p><p>Estuary makes transformations a first-class part of the pipeline. Using derivations, teams can define logic in <strong>Streaming SQL</strong> or <strong>JavaScript</strong>, depending on preference and complexity. These derivations run continuously on incoming events, producing new collections that can be materialized anywhere.</p><p>Some practical benefits include:</p><ul><li><strong>Efficiency</strong>: Instead of scanning entire datasets, Estuary maintains state incrementally. For example, calculating total order value per customer happens in real time as events arrive, not through expensive batch queries.</li><li><strong>Flexibility</strong>: Derivations can be published as collections, turning transformed data into reusable products. Downstream teams can materialize these into their systems of choice without having to redo the same transformations.</li><li><strong>Testing and validation</strong>: Derivations integrate with Estuary’s schema and testing framework, so you can prevent breaking changes before they impact production pipelines.</li><li><strong>Integration with dbt Cloud</strong>: For teams already invested in dbt, Estuary can trigger dbt jobs as soon as new data arrives, closing the gap between ingestion and transformation in the warehouse.</li></ul><figure><img alt="How Flow handles derivations: transformations operate over sourced collections, maintain state through lambdas, and publish into derived collections for reuse." src="https://cdn-images-1.medium.com/max/1024/1*ACQ-2RXZlyo2BfHgscexjw.png" /><figcaption>How Estuary handles derivations: transformations operate over sourced collections, maintain state through lambdas, and publish into derived collections for reuse.</figcaption></figure><p>This approach allows teams to decide where transformations should live. You are never locked into transforming inside Estuary, but you have the option to push certain workloads closer to the source when that makes sense. Over time, many teams find that incrementally migrating transformations into Estuary reduces costs and makes their pipelines simpler and faster.</p><h3>CDC and Reliability at Scale</h3><p>Change Data Capture is at the heart of modern real-time data movement. Capturing inserts, updates, and deletes directly from the source database ensures downstream systems stay in sync without the need for heavy batch jobs.</p><p>Debezium is one of the most popular open-source CDC frameworks, and for good reason. It provides a solid foundation for reading database logs and publishing change events. But in practice, running Debezium at scale can become complex. High-frequency updates, large tables, and schema drift often require additional tooling, tuning, or downtime to keep pipelines stable.</p><p>Estuary was built to go beyond this baseline. Its CDC connectors are designed for high-throughput workloads, borrowing lessons from <a href="https://netflixtechblog.com/dblog-a-generic-change-data-capture-framework-69351fb9099b?gi=936836c630f9">Netflix’s DBLog</a>. A few key advantages include:</p><ul><li><strong>Incremental backfills</strong>: Estuary can backfill historical data while simultaneously streaming new changes. This eliminates the need for downtime or quiet periods during initial syncs.</li><li><strong>Concurrent log reading</strong>: By combining log-based CDC with incremental state snapshots, Estuary captures large datasets quickly and efficiently.</li><li><strong>Resilient pipelines</strong>: All tasks in Estuary are decoupled. If a single materialization fails, others continue running, and the failed task can simply backfill missed records once it recovers.</li><li><strong>Proven scale</strong>: Estuary has been used to sync multi-terabyte datasets with high update frequency, demonstrating its ability to handle workloads that would strain traditional CDC setups.</li></ul><p>This design gives teams confidence that pipelines will keep running smoothly, even under heavy load. Whether the challenge is syncing a fast-moving orders table, migrating an entire database, or maintaining multiple destinations in parallel, Estuary delivers CDC with reliability at enterprise scale.</p><h3>Cost Efficiency: Streaming vs Batch</h3><p>The cost of data pipelines is not just about licensing fees. It is also about how much compute, storage, and engineering time is consumed by moving data from one place to another. Traditional ETL tools are batch-oriented. They extract entire tables or large increments on a schedule, transform them, and reload them into a destination. Even if only a small fraction of the data has changed, the full dataset might be reprocessed. That drives up cloud bills and creates inefficiency.</p><p>Debezium avoids this by focusing on CDC, but since it is often paired with Kafka and other processing layers, infrastructure costs can still rise quickly as scale increases. Operating multiple systems adds overhead not just in compute but also in the engineering hours needed to keep everything tuned and reliable.</p><p>Estuary was designed from the ground up as a streaming platform. It processes data incrementally, record by record, and only moves what has actually changed. This model translates directly into cost savings:</p><ul><li><strong>Less wasted compute</strong>: No repeated scans of large tables, no unnecessary reprocessing.</li><li><strong>Lower storage requirements</strong>: Data is organized as collections backed by cloud storage, making it easy to retain history without duplicating workloads.</li><li><strong>Smarter scaling</strong>: Estuary automatically distributes tasks across shards when throughput increases, so resources are used efficiently.</li><li><strong>Pricing alignment</strong>: Estuary’s pricing is tied to actual data volume moved, not inflated by repeated full loads.</li></ul><p>For organizations that have outgrown batch ETL, the shift to a streaming-first model can produce significant savings while also reducing latency. Instead of paying for wasted cycles, teams can invest in making data available faster and more reliably.</p><h3>Why Estuary? Benefits for Developers and Businesses</h3><p>When evaluating new data infrastructure, teams often ask the same question: how will this make life easier for developers, and how will it deliver value to the business? Estuary was designed with both perspectives in mind.</p><h3>For Developers</h3><ul><li><strong>Simple onboarding</strong>: Get started in a few clicks with the web app, or manage everything as code using YAML and GitOps workflows.</li><li><strong>Real-time by default</strong>: Capture changes as they happen, without building a separate stack for streaming.</li><li><strong>Built-in reliability</strong>: Schema validation, versioned materializations, and automatic backfills keep pipelines running smoothly.</li><li><strong>Flexible transformations</strong>: Use streaming SQL, JavaScript, or integrate directly with dbt Cloud.</li><li><strong>Future-proof architecture</strong>: Start with a single pipeline and scale up to hundreds without changing tools.</li></ul><h3>For Businesses</h3><ul><li><strong>Lower total cost of ownership</strong>: Incremental streaming means paying only for the data that changes, not for repeated full loads.</li><li><strong>Faster insights</strong>: Data arrives in the warehouse, lakehouse, or operational systems within seconds, enabling real-time analytics and decision-making.</li><li><strong>Compliance and security</strong>: With private deployment and BYOC options, teams can keep sensitive data inside their own infrastructure.</li><li><strong>Operational efficiency</strong>: Less time spent managing brittle pipelines means more time focused on building products and delivering insights.</li><li><strong>Scalability with confidence</strong>: Whether the business is small or enterprise-scale, Estuary provides the flexibility to adapt as requirements grow.</li></ul><p>The combination of developer-friendly features and business-level outcomes makes Estuary more than just another integration tool. It is a platform designed to grow with the organization, supporting both immediate projects and long-term strategy.</p><h3>Conclusion</h3><p>The landscape of data integration has changed. Batch ETL platforms are too slow and expensive for many modern use cases, and open-source CDC tools like Debezium, while powerful, often require heavy engineering investment to operate at scale. Teams today need more than just point-to-point pipelines. They need a platform that captures data in real time, adapts gracefully to schema changes, supports transformations, and can run in whatever environment their business requires.</p><p>Estuary was built with these needs in mind. It combines CDC, streaming transformations, schema evolution, and flexible deployment into a single system. For developers, that means fewer moving parts and more time spent building. For businesses, it means lower costs, faster insights, and a future-proof foundation for data strategy.</p><p>Whether you are starting with a simple database-to-warehouse sync or building a company-wide real-time data platform, Estuary provides the efficiency, resilience, and flexibility to grow with you. It is a modern alternative to traditional ETL and a natural next step for teams moving beyond the limits of DIY CDC.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1c046c82d0f3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The True Cost of Data Warehousing in 2025: A Real-World Benchmark]]></title>
            <link>https://medium.com/@estuarydata/data-warehouse-benchmark-1341fb233de5?source=rss-d13f8e5da6ab------2</link>
            <guid isPermaLink="false">https://medium.com/p/1341fb233de5</guid>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[benchmarking]]></category>
            <dc:creator><![CDATA[Estuary]]></dc:creator>
            <pubDate>Thu, 17 Jul 2025 07:55:16 GMT</pubDate>
            <atom:updated>2026-11-02T07:34:03.726Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introducing the Estuary 2025 Benchmark: A Real-World Performance Report</strong></p><blockquote><strong>NEW: Explore Our Latest Cloud Data Warehouse Benchmark</strong></blockquote><blockquote>Estuary and CorrDyn have published an expanded benchmark comparing seven cloud data warehouses: Snowflake, Databricks, BigQuery, Redshift, Microsoft Fabric, ClickHouse, and MotherDuck.</blockquote><blockquote>The new study evaluates 244 queries across datasets from 1 GB to 1 TB, with up to 100 simultaneous sessions.</blockquote><blockquote><a href="https://estuary.dev/data-warehouse-benchmark-report/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=warehouse_benchmark"><strong>Explore the latest benchmark and download the full report</strong></a></blockquote><blockquote><em>Note: The findings below are from our old benchmark and are retained for historical reference.</em></blockquote><p>Choosing a data warehouse isn’t just about performance.<br> It’s about time, money, scalability — and survival.</p><p>For many data teams, selecting a data warehouse is one of the most consequential decisions they’ll make. The stakes are high: performance ceilings, ballooning costs, and platform rigidity can quietly erode an entire data strategy.</p><p>Yet, this choice is often made with limited visibility. Product demos shine. Docs promise. But in the real world — with billions of rows, nested data, and unpredictable workloads — things break.</p><p>At <strong>Estuary</strong>, we work with fast-growing companies that move massive volumes of data every minute. We’ve helped teams dig out of the consequences of poor warehouse fit: 18-month migrations, broken pipelines, millions wasted.</p><p>So we decided to create the benchmark we wish they had before choosing.</p><h3>The Estuary 2025 Data Warehouse Benchmark</h3><p>In our previous benchmark, we evaluated five major data warehouses — BigQuery, Snowflake, Databricks, Redshift, and Microsoft Fabric — with one goal in mind:</p><p><strong>How do these systems actually perform in production-like environments?</strong></p><p>Forget perfect query plans and toy datasets. This benchmark stresses systems like a real data team would.</p><h3>What Makes This Benchmark Different?</h3><p>Unlike most performance reports, we didn’t optimize for marketing points. We optimized for realism:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Q4xFV00sEcWx_y60jWJKQ.png" /><figcaption>Cost-to-runtime comparison of Snowflake, BigQuery, Databricks, Redshift, and Fabric under real workload benchmarks.</figcaption></figure><ul><li><strong>1TB+ TPC-H SF1000 dataset</strong>, including structured + semi-structured data</li><li><strong>Custom query suite</strong>, co-designed by practicing data engineers</li><li><strong>Lifecycle tracking from ingestion to query output</strong>, via Estuary Flow</li><li><strong>No vendor-specific tuning</strong>, caching, or configuration tricks</li><li><strong>Open-source methodology</strong> — fully reproducible on <a href="https://github.com/estuary">GitHub</a></li></ul><p>We even designed <strong>“Query F” — the Frankenquery</strong> — a brutal, multi-stage SQL monster to surface every crack.</p><h3>Key Takeaways</h3><p>The following findings reflect the workloads, configurations, and platform versions tested in our original benchmark. They should not be interpreted as universal performance rankings or conclusions about current platform capabilities.</p><h4>1. BigQuery</h4><p>Blazing fast — especially on nested JSON — but dangerously unpredictable in cost. Great for speed, but guard your wallet.</p><h4>2. Snowflake</h4><p>Balanced and production-ready. Auto-suspend and scaling work well. A good default choice for teams that value stability.</p><h4>3. Databricks</h4><p>Flexible, especially for AI/ML pipelines. But SQL workloads lag under stress. Expect tuning overhead.</p><h4>4. Redshift &amp; Microsoft Fabric</h4><p>Under pressure, both systems showed serious cracks, from memory failures to multi-hour runtimes. Caveat emptor.</p><h3>Cost vs Runtime: Not What You Think</h3><p>One of the most surprising results?</p><blockquote><em>A few seconds of runtime saved often came at </em><strong><em>10x the cost</em></strong><em>.<br> Faster isn’t always better — or cheaper.</em></blockquote><p>Without aggressive tuning, some platforms charged hundreds for workloads that others handled for pennies.</p><h3>Rankings That Matter</h3><p>Our full report breaks down each warehouse across six real-world criteria:</p><ul><li>Cost-efficiency</li><li>Raw performance</li><li>Scalability</li><li>Reliability under load</li><li>Startup-friendliness</li><li>Enterprise-readiness</li></ul><p>We also flag which platforms <strong>crashed</strong> under memory pressure, and which scaled gracefully, even with small cluster sizes.</p><h3>Why Estuary Did This</h3><p>Estuary is a real-time data integration platform that connects sources, lakes, warehouses, and apps — fast. We power streaming and batch pipelines into systems like Snowflake, BigQuery, Databricks, and beyond.</p><p>This benchmark wasn’t just a curiosity project. It reflects the stakes our customers face when their warehouse doesn’t deliver.</p><p>We’ve seen the real impact: lost time, lost trust, and budgets burned on platforms that didn’t scale. That’s why we’re publishing this data — so your team doesn’t have to learn the hard way.</p><h3>Planning a Migration? Building AI Pipelines? Scaling Fast?</h3><p>Whether you’re:</p><ul><li>Choosing a data warehouse for a new project</li><li>Migrating from an old one</li><li>Building real-time analytics or ML systems</li><li>Or just tired of surprises in your monthly bill…</li></ul><p>Our original benchmark explored these trade-offs. Our latest research takes the comparison further, evaluating seven cloud data warehouses across a broader range of workloads.</p><p><a href="https://estuary.dev/data-warehouse-benchmark-report/?utm_source=medium&amp;utm_medium=referral&amp;utm_campaign=warehouse_benchmark"><strong>Download Estuary and CorrDyn’s Latest Cloud Data Warehouse Benchmark</strong></a></p><p>Explore our expanded benchmark covering seven cloud data warehouses, 244 queries, and workloads from 1 GB to 1 TB. Get the full findings, performance comparisons, and decision guide.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1341fb233de5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>