Why I'm Not Rushing to Put PesaGuard on Iceberg (Yet)

Why I'm Not Rushing to Put PesaGuard on Iceberg (Yet)

The read I keep coming across from this year's Iceberg Summit is that the adoption argument is over. Nobody there was trying to convince anyone to adopt Apache Iceberg anymore; the conversation had already moved to what to build once you're on it. Catalog choice, compaction strategy, REST interoperability across Spark, Trino, and Flink. Enterprise data teams settled the "should we" question and moved on to "how do we operate this well."

I read that and immediately asked myself whether PesaGuard should be on Iceberg. The honest answer is: not yet, and being clear on why matters more than following the trend.

What Iceberg actually solves

Iceberg is an open table format that puts ACID transactions, schema evolution, and time travel on top of plain files sitting in object storage, so multiple engines (Spark, Trino, Flink, DuckDB) can all read and write the same tables without locking you into one vendor's proprietary format. That's a real problem for a team running petabytes across multiple compute engines that all need to agree on one source of truth without copying data between them.

PesaGuard, today, is a Flask backend and a Next.js frontend, backed by PostgreSQL through Supabase, serving one pilot customer. There's exactly one engine touching that data: Postgres itself. The multi-engine interoperability problem Iceberg solves doesn't exist yet, because there's only one engine in the picture.

What actually matters at this stage

The real risk to PesaGuard right now isn't table format lock-in. It's the same risk it's always been: can the reconciliation engine be trusted. Webhook idempotency, correct handling of Daraja's retry behavior, catching a real anomaly without burying it in false positives. None of that gets easier by migrating to a lakehouse. If anything, taking on Iceberg's operational surface, catalog choice, compaction jobs, snapshot expiration, before the core product logic is fully proven would be spending complexity budget in the wrong place.

That's not an argument against Iceberg. It's an argument against adopting infrastructure ahead of the problem that justifies it.

Where it does fit into the plan

The target-state architecture spec I wrote scoping PesaGuard to 100 million transactions/day already assumes this conversation happens eventually, just not now. At pilot scale, a single Postgres instance is boring, well-understood infrastructure, and boring is correct when you're still validating whether the product itself works. The spec maps out where an open table format becomes the right call: the point where transaction volume needs multiple compute engines reading the same historical data concurrently, for example a Postgres OLTP layer for live reconciliation alongside a Spark or Flink job doing longer-range fraud analysis over the same table.

Writing that down now, while it's cheap, means the migration path exists before it's urgent. Building it now, before it's needed, would just mean maintaining infrastructure whose only job is looking prepared.

The honest trade-off

Adopting boring, current-scale infrastructure risks a harder migration later if growth outpaces the plan. Adopting future-scale infrastructure now risks operational overhead with no corresponding benefit today. I'm choosing the first risk deliberately, because the cost of being wrong about "we'll migrate later" is a known, bounded engineering project. The cost of being wrong about "we need this complexity now" is time spent operating infrastructure that never earns its keep.

Share this article

Back to Blog See Projects