Skip to main content

OLake Go vs Debezium, Flink and Spark: Postgres to Iceberg Comparison

This page compares four pipelines that replicate one PostgreSQL table into Apache Iceberg on AWS Glue: OLake Go, Debezium + Kafka + Iceberg sink, Flink and Debezium + Kafka + Spark. All four ran on the same machine, against the same source table, one pipeline at a time.

The benchmark measures full-load speed, Change Data Capture (CDC) catch-up speed, CPU, memory and data correctness, then tests updates, deletes, a schema change and reads from four query engines. Run date: 19th Nov 2026.

info

Every result is a single run. Treat differences under about 15% as noise. This page ranks each measured item on its own and does not name an overall winner.

Pipelines Compared​

PipelineWhat it is
OLake GoOne process that reads Postgres and writes Iceberg. It exits when the sync is done.
Debezium + Kafka + Iceberg sinkDebezium 3.0.8 reads Postgres into Kafka. The Kafka Connect Iceberg sink (older Tabular build 0.6.19) writes Iceberg.
FlinkOne Flink job, in SQL mode. The Flink CDC connector reads Postgres and the Iceberg Flink connector writes Iceberg. No Kafka. SQL mode does not support schema evolution. Flink's YAML pipeline mode does.
Debezium + Kafka + SparkDebezium reads Postgres into Kafka. Spark Structured Streaming writes Iceberg.

Workload​

  • Dataset: a copy of the TPC-H customer table with 45,000,000 rows and 8 columns.
  • Full load: each pipeline snapshots the 45,000,000-row table.
  • CDC: all pipelines are stopped, then 10,000,000 new rows are inserted (100 transactions of 100,000 rows). Each pipeline resumes from its saved position and is timed until the backlog is committed.
  • Write mode: append-only for the speed runs, upsert for the feature tests.
  • Timing: from tool start until the Iceberg table in Glue shows the full committed row count.

Environment​

  • Source database: Amazon RDS for PostgreSQL 16.15, SSL require
  • Destination: Apache Iceberg on AWS Glue with an Amazon S3 warehouse, region ap-south-1
  • Benchmark compute: one c7i.16xlarge (64 vCPU, 123 GiB), in the same region as source and destination
  • Memory limit: 32 GB for each pipeline
  • Parallelism: 16 threads requested for every pipeline
note

The same source table and compute were used for all four pipelines.

Full Load Results​

PipelineRows ProcessedTotal TimeAvg Throughput (rows/sec)
Flink45,000,00098 s459,000
OLake Go45,000,000129 s350,000
Debezium + Kafka + Spark45,000,000353 s127,000
Debezium + Kafka + Iceberg sink45,000,000444 s101,000

Key observations:

  • Flink was fastest on full load. OLake Go was second, at about 76% of Flink's throughput.
  • OLake Go was about 2.7 times faster than Debezium + Kafka + Spark and about 3.5 times faster than Debezium + Kafka + Iceberg sink.
  • Debezium 3.0.8 used one snapshot thread for the table, with snapshot.max.threads=16 set. OLake Go and Flink loaded the table in parallel.
  • All four places are outside the 15% noise range.

CDC Results (Insert-only; 10M rows)​

PipelineRows ProcessedTotal TimeAvg Throughput (rows/sec)
OLake Go10,000,000103 s97,000
Debezium + Kafka + Spark10,000,000149 s67,000
Flink10,000,000154 s65,000
Debezium + Kafka + Iceberg sink10,000,000172 s58,000

Key observations:

  • OLake Go was fastest on CDC catch-up, about 1.4 times faster than the next pipeline.
  • Places 2 to 4 are each within 15% of the next place, so only OLake Go's lead is outside the noise range.

Resource Utilization​

Memory​

Peak memory is the highest memory use seen during the run. Each pipeline had a 32 GB limit. Lower is better.

PhaseOLake GoDebezium + Kafka + Iceberg sinkFlinkDebezium + Kafka + Spark
Full load, peak memory (GB)5.414.221.323.1
CDC, peak memory (GB)1.29.816.523.9

Key observation: OLake Go had the lowest peak memory in both phases.

CPU​

This table shows the total CPU work needed to move 1,000,000 rows. The unit is the core-second: one CPU core fully busy for one second. Lower is better.

Example: OLake Go shows 41 on full load. Moving 1,000,000 rows took the same CPU work as one core busy for 41 seconds.

PhaseOLake GoDebezium + Kafka + Iceberg sinkFlinkDebezium + Kafka + Spark
Full load (core-seconds per 1M rows)41212439
CDC (core-seconds per 1M rows)48292117

Key observations:

  • This number is not speed. Debezium + Kafka + Iceberg sink has the lowest number on full load (21) and was also the slowest (444 s). It used few cores for a long time. OLake Go used many cores for a short time (129 s).
  • Full load: Debezium + Kafka + Iceberg sink (21) and Flink (24) needed less CPU work. Debezium + Kafka + Spark (39) and OLake Go (41) needed more.
  • CDC: OLake Go needed the most CPU work (48). The other three needed between 17 and 29.
  • The numbers are estimates. CPU was sampled only 8 to 37 times in each run. A small gap, such as 21 against 24 or 39 against 41, is not a real difference.
  • When it matters: CPU work decides cost when you pay per core used. When you rent a fixed machine by the hour, run time decides cost.

Services and Files​

MetricOLake GoDebezium + Kafka + Iceberg sinkFlinkDebezium + Kafka + Spark
Services running between syncs0223
Data files written1119128304

Key observation: OLake Go exits after a sync. The other three keep services running between syncs: Flink keeps a JobManager and a TaskManager, the Debezium pipelines keep Kafka and Kafka Connect, and the Spark pipeline also keeps Spark.

Data Correctness​

After the full load and the CDC workload, each Iceberg table was compared with the source.

Table written byRowsDistinct keyssum(c_acctbal)Size
Source (Postgres)55,000,00055,000,000247486409332.26
OLake Go55,000,00055,000,000247486409332.263.20 GB
Debezium + Kafka + Iceberg sink55,000,00055,000,000247486409332.263.12 GB
Flink55,000,00055,000,000247486409332.263.24 GB
Debezium + Kafka + Spark55,000,00055,000,000247486409332.263.26 GB

No pipeline lost or duplicated a row, including across the stop and resume between full load and CDC.

Feature Tests​

These tests used a separate 1,000,000-row table with every pipeline in upsert mode.

TestOLake GoDebezium + Kafka + Iceberg sinkFlinkDebezium + Kafka + Spark
Updates applied correctlyYesYesYesYes
Deleted rowsKept as rows with _op_type = 'd'RemovedRemovedRemoved
Delete files writtenEquality by default. Position or deletion vectors with update_typeEqualityEqualityPosition
Removing equality deletesBuilt in: set update_type = pos, the next sync rewrites themSeparate Spark maintenance jobSeparate Spark maintenance jobNot needed
New source columnAdded automaticallyAdded with evolve-schema-enabled=trueDropped silently in SQL mode, job kept runningDropped silently, job kept running
Decimal column in Icebergdecimaldoubledecimaldouble
Source NOT NULL keptNoYesKey column onlyNo
Extra columns added to the table5 OLake columnsNoneNoneNone
Workarounds needed in the runsNoneUpsert only in the older, unmaintained sink buildJob cancelled over RESTCustom merge code for updates and deletes

Key observations:

  • OLake Go keeps each deleted source row as a row with _op_type = 'd'. A reader gets the source row count with WHERE _op_type <> 'd'.
  • The Kafka Iceberg sink result is for the older Tabular build. The current Apache sink only appends, so it has no upsert or delete handling.
  • Flink has two modes. This benchmark ran Flink in SQL mode. SQL mode does not support schema evolution: the column list is fixed in the job, so a new source column is dropped. Flink's YAML pipeline mode does support schema evolution, according to the Flink CDC documentation.

Query Engine Reads​

Every table was read back by four engines. Each one computed row count, distinct keys and sum(c_acctbal).

ReaderAppend-only tables, all four pipelinesUpsert tables with equality deletesUpsert tables with position deletes
Spark 3.5.3CorrectCorrectCorrect
Trino 476CorrectCorrectCorrect
Flink 1.19.3CorrectCorrectCorrect
PyIceberg 0.8.1CorrectRefuses to readCorrect
  • PyIceberg does not read equality deletes. OLake Go, the Kafka Iceberg sink and Flink write them by default in upsert mode.
  • In OLake Go, setting update_type = pos rewrote the equality deletes on the next sync, and PyIceberg then read the table. The Kafka sink and Flink tables needed a separate Spark rewrite_data_files job first.
  • On the two Debezium tables, Flink's sum differed by 0.06 and 0.03, because those tables store c_acctbal as double.
  • OLake Go also wrote a 1,000,000-row table into Snowflake's Horizon catalog with deletion vectors. After inserts, deletes and updates, Snowflake SQL returned the same row count, distinct keys and sum as the source.

Implementation Considerations​

  • Single runs. Each number comes from one run on one table. Differences under about 15% are noise.
  • Not the same test as the ingestion benchmark. The Ingestion Benchmarks page uses a 4,008,587,913-row dataset on different machines. Do not mix numbers from the two pages.
  • Scheduled against continuous. OLake Go runs as scheduled jobs and exits after each sync. The other three pipelines run continuously.
  • Kafka Iceberg sink build. All runs used the older Tabular build 0.6.19. Its upsert results do not apply to the current Apache sink.

Full Results​

The complete results, including every table above in full detail and a 31-row feature comparison from each project's documentation and code, are in the OLake Go repository: