BRAMANTHYO ANDRIAN
← All work

A sidecar instead of a rewrite: simplifying a product-catalog flow on Iceberg

Five new columns without touching a 15-node flow: a parallel sidecar swaps always-on streaming for scheduled Spark and ends a 7.2M-row daily rewrite.

Solution design, development, testing and deployment

15 → 5
nodes in the flow
3 → 0
always-on streaming jobs, replaced by scheduled jobs
7.2M
rows a day no longer rewritten

Context

Two programmes needed five new product-catalog columns. The existing flow was long (15 nodes from listener to summary tables, three always-on streaming jobs and three topics) and read by about 1,500 distinct applications. A daily job rewrote about 7.2 million rows although only a few dozen to a few thousand rows really changed.

Role

I designed, built, tested and deployed the sidecar.

Approach

  • Leave the existing path running and build a parallel sidecar carrying every column, so no downstream consumer is disturbed.
  • One base table, then scheduled PySpark jobs that clean, de-duplicate and write two Iceberg tables: a history table (append) and a current-state table (MERGE), with no daily physical copies.
  • Simplify the flow: replace the streaming jobs with scheduled jobs and cut the path from 15 nodes to 5.

Result

The design was validated on 8 October 2026 and the base table was deployed to production on 22 October. The history and current-state tables were in testing at the end of October.