Postgres to Iceberg CDC: Aurora-to-S3 Tables Replication vs Debezium + Flink vs Managed ELT
On December 2, 2026, AWS put a checkbox where a streaming platform used to be. The new Aurora PostgreSQL integration with Amazon S3 Tables, announced in preview at re:Invent, continuously replicates selected tables into Apache Iceberg “within minutes”. That forces a real question on every data team running postgres to iceberg cdc today: do you still need Debezium, Kafka and Flink, or a managed ELT vendor, to land operational rows in a lakehouse?
The honest answer depends less on which tool reads the write-ahead log than on two things nobody puts on the slide. The first is who owns the delete representation and the compaction loop that pays for it. The second is how much write-ahead log your primary will hoard when the pipeline stalls. This post compares four approaches on exactly those mechanics, with worked numbers you can rerun.
What this covers: a side-by-side matrix, the four-stage CDC mechanism, each contender’s real limits, latency-versus-commit-interval math, a cost model, failure modes, and a decision tree.
At a Glance: The Four Ways to Land Postgres Changes in Iceberg
Before the mechanism, here is the comparison most readers came for. Status and version facts were checked against official sources on December 4, 2026. Latency figures are vendor statements or configurable defaults, not benchmarks.
| Dimension | Aurora to S3 Tables integration | Debezium + Kafka + Iceberg sink | Flink CDC pipeline to Iceberg | Managed ELT (Fivetran, Estuary, Airbyte) |
|---|---|---|---|---|
| Status | Preview, announced Dec 2, 2026 | Debezium 3.7 latest stable; Iceberg sink ships in Apache Iceberg | Flink CDC 3.6.0 (Mar 2026) | GA products, features vary by vendor |
| Source scope | Aurora PostgreSQL 16.4+, 17.4+, 18.3+ only | Any Postgres with logical decoding | Any Postgres with logical decoding | Any Postgres the vendor supports |
| Stated freshness | “Within minutes” (AWS) | Sink commit default 5 min, tunable | Bound by Flink checkpoint interval | Sync schedule, minutes to hours |
| Delete handling | Equality deletes, Iceberg V2 | Depends on sink mode; see caveats | Upsert via equality fields | Vendor-specific merge strategy |
| Schema evolution | Many changes in place; others trigger table resync | Opt-in auto evolve on sink | Schema change events, improved in 3.6 | Usually automatic, with limits |
| Ops burden | Lowest | Highest | High | Low to medium |
| Lock-in | AWS, same Region, one bucket per integration | Lowest | Low | Vendor and its pricing model |
| Replication cost | Free during preview; you pay export, I/O, storage, compaction | Your infra | Your infra | Vendor pricing |
The rest of the article explains why the “delete handling” and “freshness” rows matter more than the “ops burden” row suggests.
Context and Background
Change data capture (CDC) means reading a database’s own change log instead of polling tables. In PostgreSQL that log is the write-ahead log (WAL), exposed to external consumers through logical decoding and replication slots. If you want a refresher on the end-to-end Kafka-centric pattern, our Debezium change data capture streaming architecture guide covers it from source to topic.
Apache Iceberg became the default landing format for this data over the last three years. It gives object-storage files ACID snapshots, hidden partitioning, schema evolution and row-level deletes. We compared it to Delta Lake and Hudi in our Iceberg vs Delta vs Hudi lakehouse ADR. The short version: every major engine now reads Iceberg, and every major cloud has a catalog for it.
The incumbent pipelines fall into three families. The first is the open-source streaming stack: Debezium reads the slot, Kafka buffers the events, and either Kafka Connect or Apache Flink writes Iceberg. The second is Flink CDC, which collapses capture and write into one Flink job described in YAML. The third is managed ELT, where Fivetran, Estuary, Airbyte and others run the capture and merge as a service.
AWS has been chipping at this from its side for two years. Amazon Aurora PostgreSQL zero-ETL integration with Amazon Redshift became generally available in October 2024. A zero-ETL integration from Aurora PostgreSQL to Amazon SageMaker lakehouse reached general availability on October 15, 2025, in 14 Regions, landing data “compatible with Apache Iceberg open standards.” Amazon Data Firehose also announced database-change replication into Iceberg tables in November 2024 as a preview; we could not confirm its current status from AWS pages this week, so treat that one as unverified.
The new preview differs in the target. It writes plain Iceberg tables into an Amazon S3 Tables table bucket that any Iceberg reader can open. That makes it a direct substitute for a self-built pipeline, not just a warehouse feature.
How Postgres to Iceberg CDC Works: The Four-Stage Pipeline
Postgres to Iceberg CDC is a four-stage pipeline: capture committed changes from the WAL through a logical replication slot, hand off from an initial snapshot to the live stream without gaps, convert each change into Iceberg data and delete files, and commit those files atomically as snapshots. Every tool implements these same four stages. They differ in who operates each one.

Figure 1: The four stages every Postgres to Iceberg CDC tool implements, plus the maintenance loop that most comparisons leave out.
Figure 1 reads top to bottom. The primary’s WAL feeds a logical replication slot, while a one-time consistent snapshot seeds existing rows. Both land in a change buffer, which might be Kafka, a Flink checkpointed state, or a vendor’s internal log. Writers turn buffered changes into Parquet data files plus delete files. A coordinator commits them as one Iceberg snapshot per interval, registered in a catalog. Finally, a maintenance loop compacts small files and expires snapshots, feeding a cleaner table back to query engines.
Stage one: logical decoding and the replication slot
Logical decoding turns physical WAL records into row-level change events. The standard output plugin is pgoutput, the same one native Postgres logical replication uses. A replication slot records how far a consumer has confirmed, as a log sequence number (LSN). The server will not recycle WAL past the oldest slot’s restart point.
That guarantee is the whole point and the whole risk. It means no change is lost while a consumer is down. It also means the primary keeps WAL for as long as the consumer stays down. The PostgreSQL documentation for max_slot_wal_keep_size is blunt: at the default of -1, “replication slots may retain an unlimited amount of WAL files.” Set a limit, and a slot that falls too far behind is invalidated instead, forcing a fresh snapshot.
Two newer server features change the picture. PostgreSQL 17 added failover slots: with sync_replication_slots enabled, a physical standby synchronizes logical failover slots so consumers can resume after a failover. PostgreSQL 18 added idle_replication_slot_timeout, which invalidates slots that stay inactive beyond a set duration. Both reduce orphaned-slot incidents, but neither removes the core coupling between consumer health and primary storage.
Debezium and Flink CDC both consume slots this way. The Aurora integration uses what AWS calls “enhanced logical replication”, which the documentation says captures changes “with minimal impact on the performance of your primary DB instance.” AWS also warns that it “can increase I/O operations per second (IOPS) on the source DB cluster”, and its pricing note mentions Aurora I/O and storage charges for that change stream.
Stage two: the snapshot-to-stream handoff
A new pipeline must first copy existing rows, then switch to the live stream without gaps or double-counting. The classic method opens the slot first, exports a consistent snapshot at the slot’s starting LSN, copies tables under that snapshot, and then streams from the same LSN. Debezium’s incremental snapshots and Flink CDC’s incremental snapshot framework go further. They chunk tables by primary key and reconcile chunks against in-flight stream events using watermarks, so large tables do not need one long-running transaction.
The Aurora integration does the same job as an “initial full sync” that “copies and filters a snapshot of the existing data”, then switches to change capture. AWS charges standard Aurora export rates for that initial sync. The integration’s status moves from creating to active only after the full sync completes, so plan the first load as a batch job, not an instant switch.
The handoff matters because it recurs. Every resync, slot invalidation or incompatible schema change sends you back through it. A pipeline that resnapshots a 2 TB table weekly is really a batch pipeline wearing a streaming costume.
Stage three: turning changes into Iceberg files
Inserts are easy: append rows to a data file. Updates and deletes are where Iceberg designs diverge. Iceberg format version 2 offers two row-level delete types. Position deletes record a file path and row ordinal, which is cheap to read but requires the writer to know where the old row lives. Equality deletes record column values, typically the primary key, meaning “any older row with this key is gone.” Writers love equality deletes because they need no lookup. Readers pay for them, because every scan must join data files against the outstanding delete set until compaction folds them in.
Streaming CDC writers almost always use equality deletes for exactly that reason. AWS states it outright for the new integration: “Aurora PostgreSQL writes updates and deletes as equality deletes, so an engine that cannot read them cannot read these tables.” Airbyte’s S3 Data Lake destination describes its upsert as an “equality-based delete on that row’s primary key, followed by an insertion of the new data.” Flink’s Iceberg sink in upsert mode does the same against configured equality fields.
Iceberg format version 3 replaces position-delete files with deletion vectors, a compact per-file bitmap; we covered the change in our Iceberg v3 spec guide. Deletion vectors help readers, but a streaming writer still needs to locate the old row to use them. Some open-source work targets exactly that: an Apache Iceberg pull request (#14797) proposes a Kafka Connect delta writer that uses deletion vectors for in-batch deduplication. Its merge status was not confirmed at the time of writing.
Stage four: exactly-once commits
An Iceberg commit is an atomic swap of the table’s metadata pointer in the catalog. The writer’s job is to make sure each source change lands in exactly one committed snapshot, even across crashes. Two patterns dominate.
The Apache Iceberg Kafka Connect sink uses a commit coordinator and a control topic. Workers write files, report them over the control topic, and the coordinator commits them together. The documentation states that the sink “relies on KIP-447 for exactly-once semantics”, which requires Kafka 2.5 or later. The default iceberg.control.commit.interval-ms is 300,000, or five minutes. Our explainer on Kafka exactly-once semantics and transactions covers why consumer offsets and outputs must commit together.
Flink’s Iceberg sink ties commits to checkpoints. Files written between checkpoints are committed when the checkpoint completes, and the committed state is stored in the checkpoint so a restart neither loses nor repeats them. Your checkpoint interval therefore sets your commit interval. The Aurora integration hides the mechanism, but AWS documents the outcome: “each target table is transactionally consistent with its source table,” while “across tables, the target is eventually consistent.”
The Contenders Up Close
With the four stages defined, each option is simply a different assignment of ownership. Figure 2 shows the topology side by side.

Figure 2: Four topologies for the same job. Fewer boxes means fewer things you operate, not fewer things that can fail.
The Aurora path is one managed box between the source and the table bucket. The Debezium path has three components you run: connector, Kafka, sink. The Flink path has two operators inside one job. Managed ELT has one box you do not run, but whose internal merge strategy you inherit.
Aurora PostgreSQL integration with Amazon S3 Tables (preview)
The AWS What’s New post dated December 2, 2026 describes a fully managed integration. You select a cluster, a target table bucket and the data to replicate. Rules can scope by database, schema or table, and column filters can exclude sensitive data such as personally identifiable information. Supported versions are Aurora PostgreSQL 16.4 and higher, 17.4 and higher, and 18.3 and higher, on provisioned and Aurora Serverless clusters. It is available in all commercial Regions where both Aurora and S3 Tables exist.
The documented constraints are where the evaluation should start. Every replicated table needs a primary key; without one it enters a FAILED state with reason SOURCE_TABLE_MISSING_PRIMARY_KEY. A data rule that excludes part of a primary key also blocks replication. A single value larger than 100 MB fails the table. AWS recommends keeping transactions under 1 GB because larger ones increase lag. Target tables are read-only and managed by the integration. Third-party coverage reading the preview documentation also reports that partitioned and unlogged tables are not replicated and that the integration must be dropped and recreated around major version upgrades; we did not find those two points on the AWS pages we checked, so verify them for your setup.
Schema evolution is better than many teams will expect. Adding a nullable column without a default, dropping a non-key column, renaming a column, compatible type promotions such as INTEGER to BIGINT, and creating, dropping or truncating tables are applied as Iceberg metadata operations. Adding a column with a default, identity, generated expression or NOT NULL constraint, incompatible type changes, renaming a table or schema, and replacing a primary key trigger an automatic resync of that table. Dropping the primary key without replacement puts the table in FAILED.
Pricing during preview is unusual. AWS does not charge for ongoing replication. You still pay Aurora export charges for the initial sync, Aurora I/O and storage for the change stream, and S3 Tables charges for storage and compaction. That last line is the hidden one, because equality-delete-heavy tables need frequent compaction.
Debezium + Kafka + the Apache Iceberg sink
This is the most flexible and most operationally expensive option. Debezium’s latest stable series is 3.7; 3.7.1.Final shipped on November 6, 2026, with PostgreSQL fixes including one for lost changes on restart in specific offset positions. That fix list is a good reminder that connector upgrades are part of the operating cost.
The Apache Iceberg Kafka Connect sink, originally built at Tabular, now ships as part of the Apache Iceberg build; the latest docs version is 1.12.0. It offers centralized commit coordination, exactly-once delivery, multi-table fan-out, and opt-in table auto-creation (iceberg.tables.auto-create-enabled) and schema evolution (iceberg.tables.evolve-schema-enabled), both defaulting to false. A DebeziumTransform single message transform, marked experimental, flattens Debezium envelopes and adds _cdc.op, _cdc.ts and related fields for the sink’s CDC feature.
Here is the caveat teams miss. The 1.12.0 configuration reference documents identifier columns but does not document an upsert-mode or delete-application property. The original Tabular connector had such options. In practice, many teams land an append-only changelog with _cdc.op and then run a scheduled MERGE in Spark or Athena to produce the current-state table. That is a valid design, but it adds a second hop and a second freshness lag. If you need direct upserts from Kafka, test the exact sink version you deploy rather than assuming.
Kafka’s advantage is fan-out. The same topic feeds Iceberg, search indexes, caches and microservices. If you already run Kafka for event-driven work, as in our transactional outbox pattern guide, the marginal cost of the lakehouse sink is small.
Flink CDC pipeline to Iceberg
Apache Flink CDC 3.x introduced YAML-defined pipelines that capture from a source and write to a sink in one job, propagating schema changes as events. The Iceberg pipeline sink arrived in Flink CDC 3.4.0 (May 2025). PostgreSQL became a pipeline source in 3.5.0 (September 2025). Flink CDC 3.6.0, released March 30, 2026, supports Flink 1.20.x and 2.2.x, raises the minimum JDK to 11, adds schema change support in the PostgreSQL pipeline connector, and adds AWS Glue catalog support, partition transforms and default column values to the Iceberg sink.
The strengths are transforms and routing in-flight, no Kafka cluster, and checkpoint-bound exactly-once commits. The weakness is that you now operate Flink: state backends, checkpoint storage, job upgrades, and savepoint compatibility across versions. Our Flink vs Spark Streaming vs Kafka Streams comparison covers that operating model in depth.
Flink can also sit downstream of Debezium and Kafka rather than replacing them. That hybrid buys Kafka fan-out plus Flink’s upsert sink, at the cost of running both.
Managed ELT: Fivetran, Estuary, Airbyte
Managed ELT vendors run capture and merge for you. Their Iceberg stories differ more than their marketing pages suggest.
Fivetran’s Managed Data Lake Service “always creates Apache Iceberg metadata” and can optionally add Delta Lake metadata over the same files. Its default catalog is a managed implementation of Apache Polaris, with AWS Glue as an option. Its documentation notes that Fivetran “does not support position deletes for Iceberg tables.”
Estuary’s Apache Iceberg materialization orchestrates Spark jobs on AWS EMR Serverless to merge updates, staging data in S3 first. It supports AWS Glue, S3 Tables through Glue or the S3 Tables Iceberg REST endpoint, and other S3-backed REST catalogs.
Airbyte’s S3 Data Lake destination supports REST, Glue, Nessie and Polaris catalogs. It uses merge-on-read with equality deletes for deduplication and “never rewrites existing Iceberg data files”. It stores numeric primary keys as strings, which changes their sort order.
The pattern is clear. Each vendor picked a different point on the write-cost versus read-cost curve, and you inherit that choice. Ask every vendor how deletes are physically written and who runs compaction.
Deeper Analysis: Latency, Small Files and Cost
The comparison table lists “freshness” as a single number. In practice there are two latencies: when a change becomes visible, and when the table becomes cheap to query again. The second is set by compaction, not by the pipeline. This is the most important idea in this post.
The latency budget and the commit interval
End-to-end freshness is roughly capture lag plus buffering plus waiting for the next commit plus commit duration. On average a change waits half a commit interval; in the worst case it waits a full one. Here is the arithmetic with illustrative component values.
# Illustrative CDC lakehouse latency budget (seconds). Component values are assumptions.
capture_lag, buffering, commit_duration = 2, 5, 3
for interval in (10, 60, 300):
avg = capture_lag + buffering + interval / 2 + commit_duration
worst = capture_lag + buffering + interval + commit_duration
print(f"commit every {interval:>3}s -> avg {avg:.0f}s, worst {worst:.0f}s")
# commit every 10s -> avg 15s, worst 20s
# commit every 60s -> avg 40s, worst 70s
# commit every 300s -> avg 160s, worst 310s
At the Kafka Connect sink’s default five-minute interval, a change takes about 2.7 minutes on average and just over 5 minutes worst case. That lands in the same “within minutes” band AWS quotes for its integration. Shrinking the interval to 10 seconds gets you near-real-time freshness, but the bill arrives elsewhere.
The small-file problem, quantified
Each commit from each writer produces at least one data file per table it touched, plus delete files when updates occur. Consider an illustrative estate of 150 replicated tables, each written by 4 parallel writers.
| Commit interval | Commits per day | Data files per day (150 tables x 4 writers) |
|---|---|---|
| 60 s | 1,440 | 864,000 |
| 300 s | 288 | 172,800 |
| 900 s | 96 | 57,600 |
Now look at file size. Take a table receiving 2 GB of changes per day across 4 writers. At a 60-second commit interval each file averages about 0.36 MB. At 300 seconds it is about 1.8 MB, and at 900 seconds about 5.3 MB. Iceberg’s default target file size is 512 MB, so the 60-second files are roughly 1,400 times smaller than the target. Even a busy 20 GB per day table only reaches about 3.6 MB per file at a 60-second interval.
Small files hurt in three ways. Query planning must read more manifest entries. Object-store GET requests multiply per scan. And snapshot metadata balloons: a 60-second interval creates 1,440 snapshots per table per day, or 7,200 retained under a five-day expiry policy. Our hands-on guide to Iceberg table maintenance, compaction, snapshot expiration and orphan files walks through the procedures that fix this.
Equality deletes and merge-on-read cost
Equality deletes add a second tax. Suppose an illustrative 200-million-row orders table where 2% of rows change daily. That is 4 million updates per day, each written as an equality delete plus a new insert. Until compaction runs, every scan must build a lookup of outstanding delete keys and filter matching older rows. At roughly 64 bytes per key in memory, an assumption for a hashed key with overhead, a day of uncompacted deletes is around 256 MB of delete state per scan task touching affected files.
That is manageable for a day. It is painful after a week of failed compaction. This is why the “cheap to query” latency depends on how often compaction rewrites data files with deletes applied. On S3 Tables, automatic compaction is a managed feature billed per object and per GB processed; check the current rates on the S3 pricing page. On self-managed catalogs it is a Spark or Flink maintenance job you schedule.

Figure 3: A decision tree for choosing a Postgres to Iceberg CDC approach, driven by source engine, primary keys, latency tolerance and existing platforms.
Figure 3 encodes the gating questions in order. Source engine and version come first because the Aurora integration simply does not apply elsewhere. Primary keys come second because tables without them fail in the integration and degrade every upsert-based approach. Latency tolerance and preview acceptance come third. Only then do existing platforms, Kafka or Flink, decide between the open-source paths.
A cost model you can actually fill in
Pipeline cost has five lines, and the vendor quote usually covers only one. Here is a structure with placeholder prices; replace each with current list prices from your providers.
# Monthly cost skeleton for Postgres to Iceberg CDC. All prices are PLACEHOLDERS.
def monthly_cost(gb_changed_per_day, objects_compacted_per_day,
price_gb_compacted, price_per_1k_objects,
pipeline_infra_per_month, source_io_overhead_per_month,
storage_gb, price_gb_storage):
compaction = 30 * (gb_changed_per_day * price_gb_compacted
+ objects_compacted_per_day / 1000 * price_per_1k_objects)
storage = storage_gb * price_gb_storage
return {"compaction": round(compaction, 2), "storage": round(storage, 2),
"pipeline": pipeline_infra_per_month,
"source_io": source_io_overhead_per_month,
"total": round(compaction + storage + pipeline_infra_per_month
+ source_io_overhead_per_month, 2)}
# Example with made-up unit prices, purely to show proportions:
print(monthly_cost(40, 172_800, 0.01, 0.003, 900, 150, 3000, 0.025))
The five lines are pipeline infrastructure, source-side I/O, target storage, compaction, and people. For the Aurora preview, the pipeline line is zero, but source I/O and compaction remain. For Debezium and Kafka, the pipeline line includes brokers, Connect workers and their monitoring. For Flink, it includes task managers and checkpoint storage. For managed ELT, it is the vendor’s consumption bill, which often scales with rows changed rather than bytes.
The people line dominates at small scale. A Kafka plus Connect stack needs someone who understands rebalances, offsets and connector upgrades. A Flink stack needs someone who understands checkpoints and state. The Aurora integration needs someone who reads CloudWatch replication lag and per-table status. That difference, not the infrastructure bill, is usually the deciding factor for teams under ten data engineers.
The decision matrix in detail
| Criterion | Aurora to S3 Tables | Debezium + Kafka + Iceberg sink | Flink CDC to Iceberg | Managed ELT |
|---|---|---|---|---|
| Best-case freshness | Minutes | Seconds to minutes, tunable | Seconds to minutes, checkpoint-bound | Minutes to hours |
| In-flight transforms | Column filters only, no row filters | Kafka SMTs, limited | Rich, SQL and YAML transforms | Vendor-dependent |
| Fan-out to other systems | No | Yes, native | Possible via extra sinks | Limited |
| Tables without primary keys | Fail | Append-only works | Append-only works | Vendor-dependent |
| Delete physical format | Equality deletes | Depends on sink version and mode | Equality deletes in upsert mode | Equality deletes or merge rewrite |
| Cross-table consistency | Per-table only | Per-table commits by default | Per-table commits | Per-table |
| Who runs compaction | S3 Tables, billed | You | You | Vendor or you |
| Exit cost | Medium: data is open Iceberg, pipeline is not | Low | Low | Medium: pipeline and sometimes catalog |
Note the cross-table row. None of these options give you a consistent multi-table snapshot by default. A query joining orders to order_lines can see each table at a slightly different point. AWS documents this for its integration, and the same physics applies to every per-table committer. If your analysts reconcile parent and child tables, build the reconciliation into the model, for example by filtering both to a common commit timestamp watermark.
Trade-offs, Gotchas, and What Goes Wrong
Most CDC incidents are not exotic. They follow one chain, shown in Figure 4, and every option in this comparison is exposed to some version of it.

Figure 4: The canonical CDC failure chain. A stalled consumer turns into WAL retention, then either storage pressure or slot invalidation, then a resnapshot.
Here is the arithmetic that makes this urgent. A primary generating an illustrative 8 MB of WAL per second retains about 28 GB per hour of consumer outage. A weekend outage of 72 hours retains about 2 TB. Self-managed Postgres with the default max_slot_wal_keep_size of -1 keeps all of it. Setting a limit protects the primary but guarantees a resnapshot after a long outage. Choose deliberately, and alert on slot lag in bytes, not only on pipeline health.
Schema changes that look harmless. In the Aurora integration, adding a column with a default value triggers a resync of that table. On a large table, that is a full reload on what developers consider a trivial migration. With the Kafka sink, evolve-schema-enabled defaults to false, so new columns silently drop until someone enables it. Publish a migration checklist, and consider data contracts with a schema registry for high-value tables.
TOAST and partial updates. PostgreSQL may omit unchanged large (TOASTed) column values from update events unless the table uses REPLICA IDENTITY FULL. Debezium handles this with a placeholder value that naive sinks can write as real data. Third-party coverage of the Aurora preview reports that enhanced logical replication writes all column values to the WAL, which would avoid the problem at the cost of the extra I/O AWS warns about; we could not confirm that detail on AWS pages.
Readers that cannot read equality deletes. Not every engine or catalog integration applies Iceberg equality deletes correctly. Airbyte’s documentation warns that Snowflake does not recognize native Iceberg row-level deletes for Glue-catalogued tables, returning every row version. Test your actual readers on update-heavy tables before go-live.
Compaction fighting writers. Compaction commits compete with streaming commits for the same table metadata. Frequent commits cause compaction retries and conflicts. Airbyte explicitly warns not to compact during a truncate-refresh sync. Schedule maintenance windows or use catalogs that coordinate it.
Large transactions. A bulk UPDATE of 50 million rows becomes 50 million change events arriving together. AWS recommends transactions under 1 GB; Kafka-based stacks see the same spike as consumer lag. Batch backfills at the source.
Practical Recommendations
Start from your constraints, not from the tool. If your source is Aurora PostgreSQL on a supported version, every table has a primary key, minutes of lag are fine, and you can accept preview terms, pilot the Aurora integration on a non-critical schema first. It removes the most operational surface. Watch the replication lag metric, per-table status, source IOPS, and S3 Tables compaction charges for a month before expanding.
If you already run Kafka, the Debezium path is the natural choice because fan-out pays for the cluster. Decide early whether Iceberg holds a changelog with a downstream MERGE or a current-state table, and test delete behavior on your exact sink version. If you need transformations or routing in-flight and have Flink skills, Flink CDC 3.6 is the most capable single-job option. Pick managed ELT when you lack streaming engineers and hourly freshness is acceptable, but ask each vendor how deletes are written and who compacts.
Whatever you pick, treat compaction as part of the pipeline, not as housekeeping. The freshness you promise analysts means nothing if queries slow down by the afternoon. Our guide to Iceberg catalogs, Polaris vs Nessie vs Unity helps if the catalog choice is still open.
A pre-launch checklist:
- Confirm every in-scope table has a primary key and no column exceeds your tool’s value-size limit.
- Set a slot retention policy and alert on slot lag in bytes.
- Choose a commit interval from the latency math, then size compaction to match.
- Test equality-delete reads in every engine your analysts use.
- Write a schema-migration runbook that flags resync-triggering changes.
- Rehearse a resnapshot of your largest table and time it.
Frequently Asked Questions
What is the best way to do Postgres to Iceberg CDC on AWS?
If your source is Aurora PostgreSQL 16.4+, 17.4+ or 18.3+ and every table has a primary key, the Aurora integration with Amazon S3 Tables is the lowest-effort option, though it is in preview as of December 2026. It replicates within minutes and is free for ongoing replication during preview. For RDS or self-managed Postgres, or when you need fan-out to other systems, Debezium with Kafka or Flink CDC remains the standard. Managed ELT suits teams without streaming engineers.
Is the Aurora PostgreSQL integration with S3 Tables the same as zero-ETL?
It belongs to the same family and shares quota pages with Aurora zero-ETL integrations, but the target differs. The Redshift zero-ETL integration lands data in a warehouse, and the SageMaker lakehouse integration lands Iceberg-compatible data in a managed lakehouse. The S3 Tables integration writes native Iceberg V2 tables into a table bucket that any Iceberg reader can open. AWS positions it for teams that want open Iceberg tables for analytics services rather than Redshift tables.
How fresh is data replicated from Postgres into Iceberg?
Freshness depends mainly on the commit interval. On average, a change waits half an interval plus capture and commit overhead. The Apache Iceberg Kafka Connect sink defaults to a five-minute commit interval, giving roughly two to three minutes average lag. Flink commits on checkpoints, so a 30-second checkpoint gives sub-minute freshness. AWS states its integration typically shows changes within minutes. Shorter intervals create many small files, which compaction must later merge.
Why do Iceberg CDC tables get slow over time?
Streaming writers typically record updates and deletes as equality delete files and commit frequently, creating many small data files. Every query must read more files and apply outstanding deletes until compaction rewrites them. A 60-second commit interval can produce hundreds of thousands of tiny files per day across a large estate. Regular compaction, snapshot expiration and orphan-file cleanup restore performance. Managed table buckets automate compaction but bill for objects and bytes processed.
Can Debezium write directly to Apache Iceberg?
Yes, through several routes. The common one is Debezium into Kafka, then the Apache Iceberg Kafka Connect sink, which includes an experimental DebeziumTransform to flatten change events. Its documented 1.12.0 configuration does not list an upsert-mode property, so many teams land a changelog and MERGE downstream. Alternatives include Flink reading Debezium topics with an Iceberg upsert sink, or community Debezium Server Iceberg consumers. Test delete behavior on the exact version you deploy.
What happens to the replication slot if the CDC pipeline stops?
The slot stops advancing and PostgreSQL retains WAL from that point onward. With the default max_slot_wal_keep_size of -1, retention is unlimited, so a long outage can fill storage on the primary. With a limit set, the slot is invalidated once it falls too far behind, and the pipeline must resnapshot. PostgreSQL 18’s idle_replication_slot_timeout can invalidate inactive slots automatically. Monitor slot lag in bytes and alert well before either limit.
Further Reading
- Change data capture with Debezium: streaming architecture end to end
- Iceberg vs Delta vs Hudi: a lakehouse table format ADR
- How to run Apache Iceberg table maintenance: compaction, snapshot expiration and orphan files
- Postgres analytics offload: pg_duckdb vs CDC to ClickHouse vs HTAP extensions
- AWS documentation: Aurora PostgreSQL integration with Amazon S3 Tables (preview)
- PostgreSQL documentation: replication server configuration, including slot retention settings
By Riju — about
