← Case studies rahmadiyan.my.id

Case study · Data warehouse & reporting

Multi-Source Data Warehouse & Reporting Platform

A Dagster + ClickHouse medallion warehouse ingesting CDC and batch data from four source systems, powering regulatory and operational reporting — built on reusable asset factories.

Redacted case study. Employer and product brands are anonymized; hostnames, database names and credentials are omitted. Metrics are real figures.

Scope

The core platform at a national electronic-payments company: a 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).

4
source systems across MySQL, MongoDB ×2, PostgreSQL
972
automated tests
91.8%
coverage, CI-gated
904M
row FINAL scan removed from the dashboard hot path

Architecture over one-off assets

Rather than hand-writing each pipeline, the platform is built on two reusable factories: one for real-time Kafka/Debezium CDC assets and one for daily-partitioned batch, cleansed, and datamart assets — each with a pluggable extractor registry and a checks factory that attaches data-quality assertions and chat 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 architecture-decision record and the live-table schema-change migration recipe the team now uses, plus a gap analysis that graded the platform's framework usage and drove several improvements.

Reporting that ships to the business

The warehouse powers a broad set of scheduled reports — exported as formatted Excel workbooks to a shared drive, with success notifications to the team chat:

DomainReports
Merchant-acquiringDaily transaction + fee; merchant-status (dormant / new / reactivated) classification; aggregator breakdowns; channel / geographic / tier datamarts; a central-bank spatial regulatory report (deriving district from sub-district via an official statistics reference)
Virtual-account collectionWeekly & monthly summaries; a client dormancy ladder; active-VA fee reports; late-arrival handling
Orchestration / switchingWeekly fee & revenue; settlement-fee reporting; biller summaries
Regulatory validationMonthly reconciliation of an independent reporting program against the warehouse pipeline, with an evidence workbook

Reliability details that mattered

Stack

Dagster ClickHouse — ReplacingMergeTree, Refreshable MVs Kafka / Debezium MongoDB MySQL PostgreSQL Python / PyArrow SharePoint & Teams SonarQube