<?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 Sasha Milovanov on Medium]]></title>
        <description><![CDATA[Stories by Sasha Milovanov on Medium]]></description>
        <link>https://medium.com/@thedatainsight?source=rss-82aaa54b440c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*j_aBDogmgek34yMo</url>
            <title>Stories by Sasha Milovanov on Medium</title>
            <link>https://medium.com/@thedatainsight?source=rss-82aaa54b440c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 23:14:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thedatainsight/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[Silver Is the Discipline: Where Truth Becomes Usable]]></title>
            <link>https://medium.com/@thedatainsight/silver-is-the-discipline-where-truth-becomes-usable-a825981d947e?source=rss-82aaa54b440c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a825981d947e</guid>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <category><![CDATA[data-modeling]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Sasha Milovanov]]></dc:creator>
            <pubDate>Mon, 06 Oct 2025 12:02:43 GMT</pubDate>
            <atom:updated>2025-10-06T13:53:43.796Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Bronze taught us to survive the battlefield. Silver teaches us to build the weapon.</em></p><p>Bronze taught us to own offsets, schemas, and raw events. Silver demands something harder: <strong>discipline. </strong>This layer turns uncut facts into reliable signals that analysts, dashboards, and machine-learning models can trust.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SpCSUCPkW32FEzHkdPpbSQ.png" /><figcaption>Image created using ChatGPT</figcaption></figure><h3>For Whom This Is For</h3><p>If you are a data engineer practicing medallion architecture beyond slides and diagrams, this walkthrough turns the <strong>Silver layer</strong> into something you can run, break, and fix inside <strong>Data Forge.</strong></p><h3>Data Forge Context</h3><p><a href="https://github.com/fortiql/data-forge">Data Forge</a> is an open-source practice ground for modern data engineering. Spin up the Docker profiles, stream the generated retail data, and watch Bronze checkpoints feed the Silver star schema.</p><ul><li><strong>Part 1 — Bronze mindset:</strong> <a href="https://medium.com/@thedatainsight/bronze-is-the-battlefield-why-real-data-engineers-start-at-the-source-6eaa16730f0a">Bronze Is the Battlefield</a></li><li><strong>Part 1.1 — CDC supply line:</strong> <a href="https://medium.com/@thedatainsight/bronze-needs-cdc-b58e066125ca">Bronze Needs CDC</a></li></ul><p>This is <strong>Part 2:</strong> shaping those raw feeds into disciplined, analyst-ready tables.</p><h3>From Battlefield to Forge</h3><p>Bronze is a battlefield log. Silver is the forge where that log becomes a blade. Discipline replaces adrenaline:</p><ul><li>Surrogate keys stand in for leaky natural identifiers.</li><li>Slowly changing dimensions capture history instead of overwriting it.</li><li>Facts hold a stable grain that downstream teams can reason about.</li></ul><p>The question shifts from “Did we ingest it?” to “Can anyone use it without guessing?”</p><h3>Why Silver Matters</h3><p>You can wire a dashboard straight to Bronze, but it will rot. Without Silver:</p><ul><li>Product identifiers drift and break historical attribution.</li><li>Customers change segments; churn models inherit today’s context for yesterday’s events.</li><li>Inventory snapshots overwrite themselves; operations cannot reconcile stockouts.</li></ul><p><strong>Silver is the contract.</strong><br>It makes semantics explicit, preserves audit trails, and keeps joins predictable.</p><h3>Kimball Discipline in a Medallion Flow</h3><p>Dimensional modeling from Kimball meets the modern Bronze/Silver/Gold pattern popularized by the Delta Lake community.</p><p>Discipline here includes holding the line on naming conventions: surrogate keys (*_sk), natural keys (*_nk), degenerate dimensions, metrics in facts, attributes in dims.</p><p>Hybrid patterns absolutely exist because real platforms evolve through negotiated manifests between data teams and the business, but the manifest only stays trustworthy if the notation is consistent.</p><p>Why to insist?</p><ul><li>Suffix conventions become guardrails for automated tests, lineage tools, and downstream SQL.</li><li>Business glossaries map to the manifest; if a “dimension” starts carrying ad-hoc metrics or opaque IDs, reconciliation breaks.</li><li>“Just this once” shortcuts multiply. Exceptions force bespoke joins and rework when you later standardize.</li></ul><p>You can empathize with the timing pressure and still insist every change lands through the manifest, with _sk / _nk consistency and regression checks.</p><p>The negotiation is real; the discipline is non-negotiable.</p><p>Write it down, tag every column accordingly. The notation <strong>is</strong> the contract.</p><h3>Checklist</h3><ol><li><strong>Dimensions own surrogate keys.</strong> Each row keeps effective dates, is_current, and the natural key for traceability.</li><li><strong>Facts respect grain and conformed dimensions.</strong> Dates, customers, products, and warehouses are referenced through surrogate keys.</li><li><strong>Audit fields survive.</strong> Offsets, partitions, and processed timestamps stay present so every record traces back to Bronze.</li></ol><p>Running the Silver DAG in Data Forge is real practice, not theory. You are building a star schema under change-data-capture pressure.</p><h3>Anatomy of the Silver DAG</h3><p>File: <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/dags/silver_retail_star_schema_dag.py">infra/airflow/dags/silver_retail_star_schema_dag.py</a></p><ul><li><strong>Triggering: </strong>Silver runs only after Bronze Iceberg snapshots publish successfully (<a href="https://airflow.apache.org/docs/apache-airflow/3.0.6/authoring-and-scheduling/asset-scheduling.html">we’re utilizing Airflow’s Asset-Aware schedulin</a>g).</li><li><strong>Factory pattern: </strong>Each TableBuilder spawns a SparkSubmitOperator, followed by Iceberg maintenance.</li></ul><p>This is orchestration discipline: deterministic task names, explicit outlets for lineage, and maintenance scheduled the moment writes complete.</p><h3>Table Builders: Discipline Encoded</h3><p>File: <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/silver/registry.py">infra/airflow/processing/spark/jobs/silver/registry.py</a></p><p>Each builder declares:</p><ul><li>identifier – human-readable handle (dim_product_catalog).</li><li>table – Iceberg destination (iceberg.silver.dim_product_catalog).</li><li>primary_key – enforced before any write hits storage.</li><li>partition_cols – explicit when pruning helps.</li></ul><p>The registry is the contract between orchestration and Spark. Add a builder and the DAG picks it up automatically.</p><h3>Star Schema Blueprint</h3><p>Silver shapes a Kimball star tuned for retail analytics:</p><ul><li><strong>Dimensions</strong> — dim_date, dim_customer_profile, dim_product_catalog, dim_supplier, dim_warehouse</li><li><strong>Facts</strong> — fact_order_service, fact_inventory_position, fact_customer_engagement</li><li><strong>Conformed keys</strong> — every fact row references the same customer, product, date, and warehouse surrogates.</li></ul><p>Analysts join through surrogate keys rather than stitching volatile natural identifiers.</p><p>That keeps dashboards stable even when upstream systems rename SKUs or recycle customer IDs.</p><h3>Dimensions: History Without Guesswork</h3><p>Take as example <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/silver/builders/dim_customer_profile.py">build_dim_customer_profile.py</a>.<br>It merges Debezium feeds for users and segments, consolidates simultaneous updates, and runs an SCD2 routine:</p><ul><li>Window functions forward-fill sparse CDC payloads.</li><li>scd2_from_events hashes change fields, then assigns valid_from / valid_to.</li><li>Surrogate keys generated with xxhash64(user_id, valid_from, bronze_offset).</li><li>is_current plus audit columns stay visible for analysts and operators.</li></ul><p>Other dimensions follow the same rhythm: products track price shifts, suppliers maintain ratings, warehouses blend metadata with telemetry.</p><pre>from silver.common import scd2_from_events, surrogate_key<br><br>scd = scd2_from_events(<br>    filled,<br>    key_cols=[&quot;user_id&quot;],<br>    ordering_cols=[&quot;valid_from&quot;, &quot;bronze_offset&quot;],<br>    state_cols=[&quot;email&quot;, &quot;country&quot;, &quot;segment&quot;, &quot;lifetime_value&quot;],<br>).withColumn(<br>    &quot;customer_sk&quot;,<br>    surrogate_key(F.col(&quot;user_id&quot;), F.col(&quot;valid_from&quot;), F.col(&quot;bronze_offset&quot;)),<br></pre><h3>Facts: <strong>Enforced Grain</strong></h3><h3>Order Service</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/silver/builders/fact_order_service.py">build_fact_order_service.py</a> joins orders, payments, and shipments.</p><p>Event timestamps pick the right SCD2 slice for each customer and product.</p><p>The fact emits:</p><ul><li>Surrogate key (order_sk)</li><li>Conformed dimensions (date_sk, customer_sk, product_sk)</li><li>Degenerate dimensions (order_id, payment_id, shipment_id)</li><li>Measures (order_amount, shipment_eta_days)</li><li>Bronze tracebacks (bronze_partition, bronze_offset)</li></ul><h3>Inventory Position</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/silver/builders/fact_inventory_position.py">build_fact_inventory_position.py</a> treats each inventory change as a transactional fact.</p><h3>Customer Engagement</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/silver/builders/fact_customer_engagement.py">build_fact_customer_engagement.py</a> aggregates interactions per user, product, and day.</p><h3>Maintenance Is Part of the Build</h3><p>Silver tables live on Iceberg, so every run ends with OPTIMIZE, EXPIRE SNAPSHOTS, and REMOVE ORPHANS.</p><p>Treat maintenance as part of extraction, not an afterthought.</p><h3>Hands-On Kata</h3><p>Run the loop end-to-end until it feels automatic.</p><p><strong>Baseline loop</strong></p><ol><li>Start the stack:<br> docker compose --profile core --profile airflow --profile datagen up -d</li><li>Try Bronze in Airflow, unpause bronze_events_kafka_stream and trigger a run. Query iceberg.bronze.raw_events in Trino to inspect payloads.</li><li>Enable Silver, unpause silver_retail_star_schema DAG</li><li>Verify outputs — query<br> SELECT * FROM iceberg.silver.fact_order_service ORDER BY order_ts DESC LIMIT 20;</li></ol><h3>Metrics the Silver Layer Unlocks</h3><p>Silver facts and dimensions power Gold analytics:</p><ul><li><strong>Revenue cadence</strong> — SUM(order_amount) sliced by product category or segment.</li><li><strong>Retention funnels</strong> — join order and engagement facts for cohort analysis.</li><li><strong>Inventory health</strong> — track stock movements per warehouse.</li><li><strong>Supplier performance</strong> — combine supplier ratings with on-time shipment metrics.</li><li><strong>Customer lifetime value</strong> — pair facts with dimension snapshots for forecasting.</li></ul><p>Because surrogate keys unify the story, these metrics stay accurate even when upstream systems rename IDs.</p><h3>Common Failure Modes and How Silver Stops Them</h3><ul><li>Natural keys in facts → surrogate keys decouple from volatile IDs.</li><li>“Latest” dimension joins → temporal predicates ensure historical accuracy.</li><li>Silent duplicates → primary-key enforcement catches them early.</li><li>Forgotten audits → Bronze offsets remain attached, making replay provable.</li></ul><p>Silver is not glamorous, but it prevents 2 a.m. incidents.</p><h3>When to Outgrow This Pattern</h3><p>The Spark builders in Data Forge are ideal for a small warehouse or a single-domain star schema: you control every transformation and practice medallion discipline without extra infrastructure.</p><h3>Advantages</h3><ul><li>Minimal moving parts: Airflow + Spark + Iceberg.</li><li>Full transparency: every builder is Python you can step through.</li><li>Flexible orchestration: add or rerun tables easily.</li></ul><h3>Limitations</h3><ul><li>Manual dependency management and verification.</li><li>Limited ergonomics for large teams.</li><li>Scaling pressure as table count grows.</li></ul><h3>Alternatives for Scale</h3><ul><li><strong>dbt Core/Cloud</strong> — SQL-first modeling with tests and docs.</li><li><strong>Dagster or Prefect</strong> — asset-based orchestration with lineage.</li><li><strong>Delta Live Tables / Databricks Workflows</strong> — managed medallion pipelines.</li><li><strong>Flink or Materialize</strong> — continuous computation for low-latency SLAs.</li></ul><p>Treat the Data Forge implementation as a kata. When scale demands more, graduate to a platform — but carry forward the discipline you learned here.</p><h3>Key Concepts: _nk and _sk</h3><ul><li>_sk → <strong>surrogate keys</strong>, deterministic and internal to Silver.</li><li>_nk → <strong>natural keys</strong>, human-readable anchors that trace surrogates through CDC and upstream corrections.</li></ul><p>Keeping both gives analysts durable joins and engineers transparent lineage back to the source systems.</p><h3>What’s Next</h3><p>Gold metrics surfaced in ClickHouse and visualized in Superset, so KPIs stay consistent across teams.</p><p><strong>Practice the discipline. The forge makes the blade.</strong></p><blockquote>Discipline replaces guesswork. Surrogate keys replace stories. That is the Silver layer.</blockquote><p>🧠 <strong>Follow the Data Forge Series</strong></p><ul><li><strong>Bronze Is the Battlefield, </strong><a href="https://medium.com/@thedatainsight/bronze-is-the-battlefield-why-real-data-engineers-start-at-the-source-6eaa16730f0a">why real data engineers start at the source</a></li><li><strong>Bronze Needs CDC, </strong><a href="https://medium.com/@thedatainsight/bronze-needs-cdc-b58e066125ca">wiring Postgres → Debezium → Kafka → Iceberg</a></li><li><strong>Gold Is the Strategy</strong> <em>(coming soon)</em></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a825981d947e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bronze Needs CDC]]></title>
            <link>https://medium.com/@thedatainsight/bronze-needs-cdc-b58e066125ca?source=rss-82aaa54b440c------2</link>
            <guid isPermaLink="false">https://medium.com/p/b58e066125ca</guid>
            <category><![CDATA[apache-iceberg]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[debezium]]></category>
            <category><![CDATA[medallion-architecture]]></category>
            <dc:creator><![CDATA[Sasha Milovanov]]></dc:creator>
            <pubDate>Fri, 26 Sep 2025 09:19:06 GMT</pubDate>
            <atom:updated>2025-09-26T09:19:06.835Z</atom:updated>
            <content:encoded><![CDATA[<p>In <a href="https://medium.com/@thedatainsight/bronze-is-the-battlefield-why-real-data-engineers-start-at-the-source-6eaa16730f0a">Bronze Is the Battlefield</a> we planted the flag: Bronze is not a warehouse of polished facts, it is a battlefield log. Offsets, schemas, and late events must survive or downstream truth means nothing. But a log is useless if your scouts stop reporting. That is why Bronze needs change data capture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKhmRwxlDDKTqrBSVvNETg.png" /><figcaption>Image created using ChatGPT</figcaption></figure><h3>Why We Pick CDC Over Replicas</h3><p>Replicas look comforting. Point Trino at it, query, call it a pipeline. But replicas break the Bronze playbook:</p><ul><li><strong>Freshness</strong> — replicas could struggle during VACUUM or checkpoints. WAL decoding streams intent as it happens.</li><li><strong>History</strong> — a replica is a snapshot, like a chess board frozen mid-turn. CDC keeps every insert, update, delete, and the order they arrived.</li><li><strong>Isolation</strong> — OLTP stays untouched. Debezium reads WAL once and ships the firehose into Kafka.</li><li><strong>Schema fidelity</strong> — every change carries a Schema Registry ID. Replicas forget what shifted.</li><li><strong>Selective capture</strong> — publications let us stream only what matters (demo.public.* in our <a href="https://github.com/fortiql/data-forge/blob/main/README.md">playground</a>).</li></ul><p>With the change log in Bronze, R&amp;D does not need to build bloating audit tables in OLTP to answer history. Trino queries the CDC-backed Iceberg tables directly. When someone asks “why bother with CDC if everything already flows through Kafka?”, the answer is coverage: domain events represent what producers choose to emit; CDC records the quiet mutations (price fixes, admin toggles, backfills) that never become events.</p><p>The cost is enabling logical decoding, sizing WAL retention, and running Debezium. The payoff is Bronze that actually deserves the name.</p><pre>Postgres<br>     │<br>     ▼<br>Debezium<br>     │<br>     ▼<br>Kafka + Schema Registry<br>     │<br>     ▼<br>Spark<br>     │<br>     ▼<br>Iceberg Bronze Tables<br>     │<br>     ▼<br>Trino / Analytics</pre><p>Think of Postgres as the frontline, WAL as the courier bag, Debezium as the scout radioing every move, and Bronze as the journal where it all lands.</p><h3>Data Forge: a CDC Gym</h3><p>This is why <a href="https://github.com/fortiql/data-forge">Data Forge</a> ships with Postgres, Debezium, Kafka, Schema Registry, and Spark out of the box. It is a gym for data engineers. Spin it up locally, break it safely, fix it, and feel the full CDC loop without production risk.</p><p>Start with the <a href="https://github.com/fortiql/data-forge/blob/main/README.md">project README</a> for a diagram of every service and how the demo.public.* publication threads through them. Then drill into <a href="https://github.com/fortiql/data-forge/blob/main/infra/trino/README.md">Trino&#39;s walkthrough</a> to see how the Iceberg tables surface for SQL and the <a href="https://github.com/fortiql/data-forge/blob/main/infra/data-generator/README.md">data generator guide</a> to learn how demo changes land in Kafka and Postgres.</p><h3>How Data Forge Streams CDC</h3><h3>Postgres: prepare the source</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/infra/postgres/init-databases.sh">init-databases.sh</a> runs on container start and:</p><ul><li>sets wal_level=logical, max_replication_slots=16, max_wal_senders=16, wal_keep_size=256MB</li><li>creates or updates the cdc_reader role with REPLICATION and SELECT on demo.public tables</li><li>keeps demo_publication aligned with every table in demo.public</li></ul><p>Two Postgres primitives make this work:</p><ul><li><strong>Replication slot</strong> — a logical slot (here demo_slot) pegs the database to an LSN for a given consumer. Postgres retains WAL segments until the slot confirms they were consumed. Debezium binds to this slot so it can resume exactly where it left off, even across restarts.</li><li><strong>Publication</strong> — a named list of tables that expose change events. demo_publication advertises every table in demo.public; Debezium subscribes to it so new tables appear without rebuilding the connector.</li></ul><p>Credentials live in .env and docker-compose.yml passes them into Postgres and Debezium. Logical replication decodes WAL into inserts, updates, and deletes. Not raw bytes. Actual intent.</p><p>⚠️ Slots only advance when consumers acknowledge the LSN. A paused connector means WAL segments accumulate. Monitor slot lag with queries like:</p><pre>SELECT slot_name, restart_lsn, confirmed_flush_lsn FROM pg_replication_slots;<br>SELECT pid, state, sent_lsn, write_lsn, flush_lsn, replay_lsn FROM pg_stat_replication;</pre><p>Keep wal_keep_size sized for your downtime window, and lean on pg_slot_advance only as a last resort.</p><p><strong>Lessons from the CDC community:</strong></p><ul><li>Snapshot strategy matters.</li><li>Schema evolution happens. Pair Schema Registry with Iceberg so column additions or drops do not break consumers.</li><li>Lag metrics tell the story.</li><li>Security scope stays tight.</li></ul><h3>Debezium: capture and publish</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/Dockerfile">Dockerfile</a> installs the Confluent Avro converters and copies <a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/start-with-connectors.sh">start-with-connectors.sh</a>. On boot the launcher waits for Kafka Connect and PUTs every connector JSON in <a href="https://github.com/fortiql/data-forge/tree/main/infra/debezium/config">config</a>.</p><p>The default config <a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/config/demo-postgres.json">demo-postgres.json</a> reuses demo_slot, listens to demo_publication, snapshots once, and streams Avro payloads with Schema Registry metadata.</p><h3>Kafka and Schema Registry</h3><p>CDC topics follow demo.public.&lt;table&gt;. Each record carries partition, offset, schema ID, and the decoded payload so we can stitch provenance into Bronze. Internal topics (schema-changes.demo, my_connect_*) keep track of schema history and connector state.</p><h3>Orchestration and Bronze Writes</h3><p>The Airflow DAG <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/dags/bronze_events_kafka_stream_dag.py">bronze_events_kafka_stream_dag.py</a> runs two paths:</p><ul><li><strong>bounded_ingest</strong> — batches generator topics into the shared iceberg.bronze.raw_events table (<a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/bronze_events_kafka_stream.py">bronze_events_kafka_stream.py</a>)</li><li><strong>ingest_&lt;table&gt; tasks</strong> — one per CDC topic (<a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/bronze_cdc_stream.py">bronze_cdc_stream.py</a>)</li></ul><p>Tasks are listed in CDC_STREAMS inside the DAG. To onboard a new Postgres table you add its topic, target table, and checkpoint path so Airflow schedules the matching ingest job.</p><h3>Operating Checklist</h3><ul><li>Start services: docker compose --profile core up -d</li><li>Bring up Airflow: docker compose --profile airflow up -d and open <a href="http://localhost:8085/">http://localhost:8085</a></li><li>Verify connector: curl http://localhost:8083/connectors/demo-postgres/status should show RUNNING</li><li>Seed changes: docker compose --profile datagen up -d data-generator or insert rows directly</li><li>Inspect topics: docker compose exec kafka kafka-topics.sh --bootstrap-server kafka:9092 --list</li><li>Trigger the Bronze DAG in Airflow</li><li>Query Iceberg tables in Trino to confirm payloads landed</li></ul><h3>Troubleshooting</h3><ul><li>Only heartbeat topic: ensure tables have rows</li><li>WAL retention warnings: bump wal_keep_size or confirm Debezium is running</li><li>Checkpoint cleanup: stop the data generator; it clears Kafka topics and checkpoints</li></ul><h3>For Practitioners</h3><ul><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/postgres/init-databases.sh">Postgres init</a></li><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/Dockerfile">Debezium Dockerfile</a></li><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/start-with-connectors.sh">Debezium launcher</a></li><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/debezium/config/demo-postgres.json">Debezium config</a></li><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/dags/bronze_events_kafka_stream_dag.py">Airflow DAG</a></li><li><a href="https://github.com/fortiql/data-forge/tree/main/infra/airflow/processing/spark/jobs">Spark jobs</a></li><li><a href="https://github.com/fortiql/data-forge/blob/main/infra/data-generator/adapters/minio/checkpoints.py">Checkpoint cleaner</a></li></ul><h3>Further Reading</h3><ul><li><a href="https://github.com/fortiql/data-forge/blob/main/docs/articles/bronze-is-the-battlefield.md">Bronze Is the Battlefield</a></li><li><a href="https://airbyte.com/blog/a-guide-to-logical-replication-and-cdc-in-postgresql">A Guide to Logical Replication and CDC in PostgreSQL</a> by Airbyte</li><li><a href="https://debezium.io/documentation/reference/stable/connectors/postgresql.html">Debezium Postgres connector docs</a></li></ul><p>Few companies wire Bronze this way. If you are a data engineer who wants to feel the real thing (CDC, WALs, Debezium connectors, Iceberg sinks), Data Forge is your gym. Spin it up, break it, fix it, and learn what Bronze is supposed to feel like.</p><p>This article lives in GitHub as <a href="https://github.com/fortiql/data-forge/blob/main/docs/articles/cdc-for-bronze.md">docs/articles/cdc-for-bronze.md</a> as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b58e066125ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bronze Is the Battlefield: Why Real Data Engineers Start at the Source]]></title>
            <link>https://medium.com/@thedatainsight/bronze-is-the-battlefield-why-real-data-engineers-start-at-the-source-6eaa16730f0a?source=rss-82aaa54b440c------2</link>
            <guid isPermaLink="false">https://medium.com/p/6eaa16730f0a</guid>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[apache-kafka]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[apache-iceberg]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Sasha Milovanov]]></dc:creator>
            <pubDate>Thu, 18 Sep 2025 15:53:53 GMT</pubDate>
            <atom:updated>2025-09-18T15:53:53.552Z</atom:updated>
            <content:encoded><![CDATA[<p>Don’t just query downstream tables. Capture events, own lineage, and forge the Bronze layer where data engineering truly begins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QIIgWghws8V2J06o6OFgvA.png" /><figcaption>Image created using ChatGPT</figcaption></figure><h3>The Trap of SQL Modeling</h3><p>Many beginner data engineers start with SQL: query tables, shape views, and model downstream data. This is useful, but if you stay there you inherit upstream flaws: missing lineage, late data, brittle reprocessing. That is building on sand.</p><p>How this looks like in practice:</p><ul><li>You optimize queries on data you didn’t ingest, so you can’t explain gaps, duplicates, or weird timestamps.</li><li>You deduplicate by some SQL heuristics instead of by offsets and event time, so results drift as volumes grow.</li><li>You backfill with ad hoc SQL because the original offsets and checkpoints are unknown.</li><li>You cannot answer basic questions about provenance: where did this record come from, and what was its schema at ingestion time.</li></ul><p>Why this hurts data teams:</p><ul><li>Debugging slows to a crawl because no one owns the first mile of data.</li><li>Lineage is incomplete, so trust erodes and rework grows.</li><li>Reprocessing is risky and expensive without authoritative checkpoints.</li></ul><p>How to escape the trap:</p><ul><li>Start at the source. Capture raw events from Kafka or CDC with offsets, partitions, schema identifiers, and event time.</li><li>Write a Bronze table that preserves provenance fields intact, and treat it as append only.</li><li>Use a durable checkpoint for ingestion jobs, and treat it as the journal of truth.</li><li>Teach downstream models to read from Bronze or from a curated Silver built directly on Bronze.</li></ul><p>Real data engineering begins one step earlier: at the raw ingestion layer. This is the <strong>Bronze</strong> layer.</p><h3>The Question</h3><p>Ask yourself: “Am I truly aware of where the data I work each day is deriving?”</p><ul><li>Event streams (clicks, payments, shipments)?</li><li>Operational databases (CDC feeds)?</li><li>Third-party APIs (ads, SaaS, partners)?</li></ul><p>If you only meet data once it’s already been transformed into tables, you’re blind to its origins.</p><h3>Why I Built Data Forge</h3><p><a href="https://github.com/fortiql/data-forge/blob/main/README.md">Data Forge</a> is a local, open-source modern data stack you can run on a laptop: Spark, Trino, ClickHouse, Iceberg, Kafka, Airflow, MinIO, wired via Docker Compose. Resettable. No cloud bills.</p><p>The point isn’t “spin up tools.” <strong>It’s to practice flows</strong>: events moving through layers, orchestration that feels real, and patterns that make a data engineer more than just a SQL modeller.</p><p>One simple but powerful component is the data generator. It produces a live retail-business-like stream: orders, payments, shipments, customers, flowing into Kafka.</p><ul><li>Data Generator: <a href="https://github.com/fortiql/data-forge/blob/main/infra/data-generator/README.md">infra/data-generator/README.md</a></li></ul><p>This article shows why real data engineering starts at Bronze, and how Data Forge playground implements it.</p><h3>Medallion Logic</h3><ul><li>Bronze: the uncut stone. Raw events with offsets, schema IDs, timestamps, payloads. Forensic truth.</li><li>Silver: the refined ingot. Deduplicated, validated, enriched. Analyst-friendly.</li><li>Gold: the minted coin. Metrics/models for decisions.</li></ul><p>Without Bronze, Silver is shaky; without Silver, Gold misleads.</p><h3>What Is Bronze (Practically)</h3><p>A single Bronze row (teaching-oriented JSON payload) might look like:</p><pre>(event_source=orders.v1,<br> partition=3,<br> offset=12847,<br> schema_id=17,<br> event_time=2025-09-15 14:22:00,<br> payload_size=512,<br> json_payload=&#39;{...}&#39;)</pre><p>Every field is provenance. Need to replay, reprocess, or debug? Bronze is your logbook.</p><h3>Why keep a copy of events in the lake</h3><p>A reasonable question from a non technical stakeholder is: why duplicate events into the lake if they already exist in Kafka or in source systems. The short answer is reliability and independence for analytics.</p><ul><li>Durability beyond retention: Kafka is a conveyor belt with limited retention. The lake is long term storage for history.</li><li>Replay and reproducibility: with a full event history plus checkpoints, you can rebuild tables, fix bugs, and audit decisions.</li><li>Decoupling from producers: analytics does not depend on producer SLAs, outages, or schema churn. The lake isolates consumers from source instability.</li><li>Governance and access control: one place to apply PII policies, masking, and lineage. Easier reviews and compliance.</li><li>Cost and performance: scanning columnar tables and snapshots in the lake is cheaper and safer than hammering operational systems.</li><li>Multi team enablement: new use cases can start from Bronze without touching producers or requesting new feeds.</li></ul><p>In this repo, correctness is anchored by two mechanisms:</p><ul><li>Checkpoints: --checkpoint identifies the authoritative offset state for each run.</li><li>ACID writes: Iceberg commits are atomic. Combined with offsets, this gives exactly once ingestion.</li></ul><p>Storage is not unbounded. We compact, optimize, and expire snapshots as part of the DAG maintenance, so Bronze remains lean while keeping the facts that matter.</p><h3>Bounded Streaming Orchestration (Airflow + Spark Structured Streaming, availableNow trigger)</h3><p>Engineers often ask: is Airflow for batch and Spark Streaming for streams, why combine them. <strong>availableNow</strong> is not a new technology. It is a trigger <a href="https://spark.apache.org/docs/latest/api/python/reference/pyspark.ss/api/pyspark.sql.streaming.DataStreamWriter.trigger.html#pyspark.sql.streaming.DataStreamWriter.trigger">setting</a> in Spark Structured Streaming that tells a streaming query to process all currently available data, advance state and watermarks as needed, commit, and then stop. It turns an infinite stream into a bounded catch up run.</p><p>In this pattern, Airflow owns the run lifecycle: scheduling, retries, observability. Spark owns streaming correctness: offsets, watermarks, exactly once writes. Combining them gives bounded streaming. Each run catches up and stops. The checkpoint carries continuity into the next run.</p><p>Note: <strong>availableNow</strong> is different from a plain batch job. The job is a streaming query with checkpoints and streaming semantics, but it terminates when caught up.</p><h3>How it works in this repo</h3><ul><li>Airflow triggers a bounded Spark Structured Streaming job via SparkSubmitOperator with trigger(availableNow=True).</li><li>The job reads Kafka with startingOffsets and maxOffsetsPerTrigger to control how much to catch up.</li><li>Offsets and streaming state live under the configured checkpointLocation (S3/MinIO).</li><li>Writes land in Iceberg as atomic commits. On retry, Spark resumes from the last successful offset and Iceberg snapshot.</li></ul><p>Key DAG params you can tweak at trigger time:</p><ul><li>topics: orders.v1,payments.v1,shipments.v1,inventory-changes.v1,customer-interactions.v1</li><li>checkpoint: s3a://checkpoints/spark/iceberg/bronze/raw_events</li><li>starting_offsets: latest (default) or earliest for backfills</li><li>batch_size: maps to maxOffsetsPerTrigger (backpressure)</li><li>table: iceberg.bronze.raw_events</li></ul><h3>What you get</h3><ul><li>Bounded runs with streaming semantics: each run consumes “what’s new,” commits, and stops.</li><li>Offset-driven correctness: Kafka offsets in checkpoints; Iceberg ACID snapshots on write.</li><li>Late data handled predictably: watermarks/TTL carry across runs; no manual overlap windows.</li><li>Stateful logic survives across runs: checkpoint persists state for joins/aggregations.</li><li>Operational fit: backpressure via batch_size; simple retries; capacity scales per run.</li></ul><h3>Replay and backfill</h3><ul><li>Full rebuild: set starting_offsets=earliest and write to a fresh checkpoint path.</li><li>Targeted catch-up: run AvailableNow repeatedly until offsets/time range caught up; switch back to latest.</li><li>Idempotency: offsets + Iceberg commits are authoritative; reruns won’t duplicate rows.</li></ul><h3>Why it feels strange</h3><ul><li>Airflow starts and stops the job, which looks like batch. The job itself is streaming and uses checkpoints and watermarks. Both are true at different layers.</li><li>There is no always on cluster. Capacity is paid per run. The checkpoint carries continuity across runs.</li><li>Recovery is by rerun. Offsets and Iceberg snapshots protect against duplicates and gaps.</li></ul><h3>Why not just batch or always on</h3><ul><li>Classic batch: you hand-manage offsets, overlaps, and idempotency, which is fragile at scale.</li><li>Always-on streaming: ideal for sub-second SLAs, but requires 24/7 resources and ops.</li><li>AvailableNow: streaming correctness without 24/7 clusters, ideal for periodical or event-triggered Bronze ingestion.</li></ul><h3>Common pitfalls</h3><ul><li>Deleting checkpoints breaks replay guarantees. Version/rotate intentionally.</li><li>Schema changes may require a new checkpoint path; plan migrations.</li><li>Don’t bypass Iceberg (e.g., writing files directly) or you lose ACID lineage.</li></ul><p>Orchestrating Spark Streaming with enabled availableNow by Airflow hits a simple sweet spot for Bronze.</p><h3>Architecture</h3><pre>+------------------+        Avro events         +--------+<br>| Data Generator   | -----------------------&gt;   | Kafka  |<br>+------------------+                            +--------+<br>                                                ^<br>                         schemas                |<br>+------------------+  &lt;-------------------------+<br>| Schema Registry  |<br>+------------------+<br><br><br>+------------------+      triggers       +-----------------------------------+<br>| Airflow (DAG)    | ------------------&gt; | Spark Structured Streaming         |<br>| bronze_events... |                     | Trigger: AvailableNow=True              |<br>+------------------+                     +-----------------------------------+<br>                                                |<br>                                   append writes (exactly once)<br>                                                v<br>                                 +-----------------------------+<br>                                 | Iceberg (Bronze tables)     |<br>                                 +-----------------------------+<br>                                                |<br>                                  S3 object storage and paths<br>                                                v<br>                                 +-----------------------------+<br>                                 | MinIO                       |<br>                                 +-----------------------------+<br>                                                ^<br>                         checkpointLocation     |<br>                         s3a://checkpoints/...  |<br>                                                |<br>                                 +-----------------------------+<br>                                 | Checkpoints                 |<br>                                 +-----------------------------+<br><br><br>+--------+       maintenance                +-----------------------------+<br>| Trino  | --------------------------------&gt; Iceberg Catalog &amp; Tables     |<br>+--------+                                  (OPTIMIZE, EXPIRE, ORPHANS)   |<br>                                            +-----------------------------+</pre><h3>Step 1: Boot the Playground</h3><pre># Clone and configure<br>git clone https://github.com/fortiql/data-forge.git<br>cd data-forge &amp;&amp; cp .env.example .env</pre><pre># Start core services (MinIO, Trino, Spark, Kafka, etc.)<br>docker compose --profile core up -d</pre><pre># Orchestration (Airflow)<br>docker compose --profile airflow up -d</pre><pre># Live retail stream (Kafka + Postgres)<br>docker compose --profile datagen up -d</pre><p>Now events flow: orders, payments, shipments, customer interactions.</p><ul><li>Quick start and ports: <a href="https://github.com/fortiql/data-forge/blob/main/README.md">README.md</a></li><li>Kafka topics and config: <a href="https://github.com/fortiql/data-forge/blob/main/infra/data-generator/README.md">infra/data-generator/README.md</a></li></ul><h3>Step 2: Orchestrate with Airflow</h3><ul><li>Open Airflow: <a href="http://localhost:8085/">http://localhost:8085</a></li><li>DAG: bronze_events_kafka_stream</li><li>Path: <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/dags/bronze_events_kafka_stream_dag.py">infra/airflow/dags/bronze_events_kafka_stream_dag.py</a></li></ul><p>Key pieces:</p><pre>with DAG(<br>    dag_id=&quot;bronze_events_kafka_stream&quot;,<br>    description=&quot;Manage Bronze raw_events via streaming from Kafka&quot;,<br>    params={<br>        &quot;topics&quot;: [&quot;orders.v1&quot;,&quot;payments.v1&quot;,&quot;shipments.v1&quot;,&quot;inventory-changes.v1&quot;,&quot;customer-interactions.v1&quot;],<br>        &quot;batch_size&quot;: 10000,<br>        &quot;checkpoint&quot;: &quot;s3a://checkpoints/spark/iceberg/bronze/raw_events&quot;,<br>        &quot;starting_offsets&quot;: &quot;latest&quot;,<br>        &quot;table&quot;: &quot;iceberg.bronze.raw_events&quot;,<br>        &quot;expire_days&quot;: &quot;7d&quot;,<br>    },<br>):<br>    bounded_ingest = SparkSubmitOperator(<br>        application=&quot;/opt/spark/jobs/bronze_events_kafka_stream.py&quot;,<br>        conf={<br>            &quot;spark.sql.extensions&quot;: &quot;org.apache.iceberg.spark.extensions.IcebergSparkSessionExtensions&quot;,<br>            &quot;spark.sql.defaultCatalog&quot;: &quot;iceberg&quot;,<br>            # ... S3/MinIO + Iceberg + Kafka<br>        },<br>        application_args=[&quot;--topics&quot;,&quot;{{ params.topics | join(&#39;,&#39;) }}&quot;,<br>                          &quot;--batch-size&quot;,&quot;{{ params.batch_size }}&quot;,<br>                          &quot;--checkpoint&quot;,&quot;{{ params.checkpoint }}&quot;,<br>                          &quot;--starting-offsets&quot;,&quot;{{ params.starting_offsets }}&quot;,<br>                          &quot;--table&quot;,&quot;{{ params.table }}&quot;],<br>    )</pre><p>After ingestion, the DAG runs Iceberg maintenance (OPTIMIZE, EXPIRE_SNAPSHOTS, REMOVE_ORPHANS) via Trino.</p><h3>Step 3: The Spark Job</h3><p>Path: <a href="https://github.com/fortiql/data-forge/blob/main/infra/airflow/processing/spark/jobs/bronze_events_kafka_stream.py">infra/airflow/processing/spark/jobs/bronze_events_kafka_stream.py</a></p><p>Read Kafka, extract provenance, write exactly-once to Iceberg:</p><pre>src = (<br>    spark.readStream.format(&quot;kafka&quot;)<br>    .option(&quot;kafka.bootstrap.servers&quot;, kafka_bootstrap)<br>    .option(&quot;subscribe&quot;, topics)<br>    .option(&quot;startingOffsets&quot;, starting_offsets)<br>    .option(&quot;maxOffsetsPerTrigger&quot;, str(batch_size))<br>    .option(&quot;failOnDataLoss&quot;, &quot;false&quot;)<br>    .load().withWatermark(&quot;timestamp&quot;, &quot;1 minute&quot;)<br>)<br>ordered = src.select(<br>    F.col(&quot;topic&quot;).alias(&quot;event_source&quot;),<br>    F.col(&quot;timestamp&quot;).alias(&quot;event_time&quot;),<br>    F.col(&quot;partition&quot;),<br>    F.col(&quot;offset&quot;),<br>    F.col(&quot;value&quot;),<br>).withColumn(<br>    &quot;schema_id&quot;,<br>    F.when(F.length(&quot;value&quot;) &gt;= 5,<br>           F.conv(F.hex(F.expr(&quot;substring(value, 2, 4)&quot;)), 16, 10).cast(&quot;int&quot;))<br>     .otherwise(F.lit(None).cast(&quot;int&quot;))<br>).withColumn(<br>    &quot;payload_size&quot;,<br>    F.when(F.col(&quot;value&quot;).isNotNull(), F.length(&quot;value&quot;) - F.lit(5))<br>     .otherwise(F.lit(None))<br>).drop(&quot;value&quot;)<br># Exactly-once to Iceberg with AvailableNow<br>(<br>  ordered.writeStream.format(&quot;iceberg&quot;)<br>  .option(&quot;path&quot;, table)<br>  .option(&quot;checkpointLocation&quot;, checkpoint)<br>  .outputMode(&quot;append&quot;)<br>  .trigger(availableNow=True)<br>  .start()<br>  .awaitTermination()<br>)</pre><p>The checkpoint is the authoritative resume state. Delete it and you lose exactly-once resumption. To replay, use a fresh checkpoint and rebuild the table (or write to a new table) from earliest.</p><p>Production best practice vs demo note</p><ul><li>Production best practice: store a byte for byte copy of the Kafka value with provenance metadata (topic, partition, offset, schema_id, event_time, ingestion_time). Avoid transforming or interpreting payloads at ingest time.</li><li>Reproducibility: enables reprocessing and rebuilding downstream layers if decoding bugs or schema changes occur.</li><li>Auditability: guarantees an exact, verifiable record of what was received.</li><li>Flexibility: allows future re decoding for analytics or ML with different decoders.</li><li>Demo note: for learning and exploration, this repo exposes a json_payload column decoded from Avro so you can quickly inspect and query with tools like Trino or Superset.</li></ul><h3>Step 4: Watch the Flow (Trino)</h3><p>Trigger the DAG, then connect any SQL client (e.g. DBeaver) to Trino (http://localhost:8080) and run:</p><pre>SELECT *<br>FROM iceberg.bronze.raw_events<br>ORDER BY event_time DESC<br>LIMIT 20;</pre><p>Each row ties back to a Kafka offset and partition.</p><h3>When Not to Use This Pattern</h3><ul><li>&lt;1s latency fraud detection</li><li>High-volume ad-tech clickstreams (millions/sec)</li><li>Always-on pipelines where bounded catch-up is unacceptable</li></ul><p>For those: Flink, always-on Spark, or a dedicated stream processor.</p><h3>Step 5: Train in Notebooks</h3><p>Open JupyterLab (docker compose --profile explore up -d, then <a href="http://localhost:8888/">http://localhost:8888</a>) and practice the katas:</p><ul><li><a href="https://github.com/fortiql/data-forge/blob/3248f5f32e80b17234123de14306a83c41449a9e/notebooks/lessons/streaming/streaming-fundamentals-lesson.ipynb">Streaming Fundamentals: checkpoints, offsets, Avro wire format</a></li><li><a href="https://github.com/fortiql/data-forge/blob/3248f5f32e80b17234123de14306a83c41449a9e/notebooks/lessons/streaming/multi-topic-streaming-lesson.ipynb">Multi-Topic Streaming: schema metadata, unified checkpoints</a></li><li><a href="https://github.com/fortiql/data-forge/blob/3248f5f32e80b17234123de14306a83c41449a9e/notebooks/lessons/streaming/bronze-layer-iceberg-example.ipynb">Bronze on Iceberg: time travel, snapshot cleanup</a></li></ul><p>Repeat them until the motions feel natural.</p><h3>A Battle-Scar Lesson</h3><p>Imagine you’re running a Kafka → Spark batch ingestion job. Offsets aren’t in checkpoints; they’re tracked in a fragile side table — or worse, not tracked at all.</p><p>Your Airflow DAG is set with 0 retries to “avoid duplicates.” Someone clicks Clear Task in the UI. Spark reruns, rereads the same offsets, and inserts hundreds of millions of rows again. Days are lost untangling the mess.</p><p>That’s why offsets belong in checkpoints, not spreadsheets. With AvailableNow, reruns and retries are safe — Spark resumes exactly where it left off, and Bronze stays clean.</p><h3>Operational Discipline</h3><ul><li>Checkpoints are sacred. Version them. Don’t casually delete.</li><li>Maintenance is daily kata. Run OPTIMIZE and EXPIRE SNAPSHOTS.</li><li>Observability is armor. Emit metrics: offsets caught, rows written, batch duration.</li></ul><h3>Cleanup After Experiments</h3><p>When you are done experimenting, avoid accidental double-appends by resetting the generator, table, and checkpoint.</p><ul><li>Stop the data generator</li></ul><pre>docker compose stop data-generator</pre><ul><li>Drop the Bronze table (so a replay does not append on top)</li></ul><pre>DROP TABLE IF EXISTS iceberg.bronze.raw_events;</pre><ul><li>Remove the checkpoint prefix in MinIO</li></ul><p>Use MinIO Console at <a href="http://localhost:9001/">http://localhost:9001</a> and delete:</p><pre>checkpoints/spark/iceberg/bronze/raw_events/</pre><h3>⚔️ A Dojo, Not a Dogma</h3><p>Data Forge is open ground. availableNow-trigger-based approach, Bronze schema, Airflow orchestration, these are training exercises, not gospel.</p><ul><li>Think Flink is better? Fork and prove it.</li><li>Prefer Delta over Iceberg? Add a profile.</li><li>See a simpler DAG? Open a PR.</li></ul><p>Start here: <a href="https://github.com/fortiql/data-forge/blob/main/README.md">Data Forge repo</a></p><h3>What’s Next</h3><ul><li>Part 1.1: CDC. Change data capture from Postgres into Kafka and Bronze using Debezium</li><li>Part 2: Silver. Cleaning, dedupe, shaping raw events</li><li>Part 3: Gold. Metrics and models in ClickHouse</li><li>…</li></ul><p>Run the DAG. Query Trino. Watch the flow. Then challenge it. Fork it. Break it. Improve it.</p><p>This article lives in GitHub as <a href="https://github.com/fortiql/data-forge/blob/main/docs/articles/bronze-is-the-battlefield.md">docs/articles/bronze-is-the-battlefield.md</a> as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6eaa16730f0a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>