The core of my work at a national electronic-payments company: a Dagster + ClickHouse data warehouse that ingests from four source systems — a QRIS merchant-acquiring product (MySQL), two virtual-account collection products (MongoDB), and a payment-orchestration platform (PostgreSQL) — through a medallion architecture (raw → cleansed → datamart/reports).
Architecture over one-off assets
Rather than hand-writing each pipeline, the platform is built on two reusable factories: make_cdc_asset for real-time Kafka/Debezium CDC assets and create_partitioned_asset for daily-partitioned batch, cleansed, and datamart assets — each with a pluggable extractor registry and a checks factory that attaches data-quality assertions and Teams alerting. This keeps a large surface of pipelines consistent and testable; the suite grew to 972 tests at 91.8% coverage with a CI gate. I also authored the ADR and _fix-table migration recipe the team uses for schema changes on live tables, and a gap-analysis that graded the platform's Dagster usage and drove several of these improvements.
Reporting that ships to the business
The warehouse powers a broad set of scheduled reports — exported as formatted Excel workbooks to SharePoint with success notifications to Teams:
- Merchant-acquiring: daily transaction + fee reports, merchant-status (dormant / new / reactivated) classification, aggregator breakdowns, channel/geographic/tier datamarts, and a Bank Indonesia QRIS-TAP spatial regulatory report (deriving kabupaten/kota from sub-district via an official statistics reference).
- Virtual-account collection: weekly and monthly summaries, a client dormancy ladder, active-VA fee reports, and late-arrival handling.
- Orchestration / switching: weekly fee & revenue reports, settlement-fee reporting, and biller summaries.
- Regulatory validation: a monthly reconciliation of an independent Go reporting program against the warehouse pipeline, with an evidence workbook.
Reliability details that mattered
A late-arrival drainer backfills records that land after their partition's report has run (the original reason the legacy CDC missed transactions), bounded with Dagster-native pool concurrency and newest-first ordering. Anomaly dashboards that previously scanned a 904M-row FINAL table per card were moved onto pre-aggregated tables fed by refreshable materialized views. Timezone handling was made explicit throughout (server UTC vs business Asia/Jakarta) after an epoch-to-WIB bug — the subject of the platform's first ADR.
Stack: Dagster 1.11 · ClickHouse (ReplicatedMergeTree, ReplacingMergeTree, Refreshable MVs, KafkaEngine) · Kafka / Debezium · MongoDB · MySQL · PostgreSQL · Python / PyArrow · SharePoint · Microsoft Teams · SonarQube.