← Case studies rahmadiyan.my.id

Case study · Systems & performance analysis

Systems & Performance Analysis for a Payments Platform

Reading other teams' systems — application code, databases, query logs, gateways — to find why something is slow, wrong, or drifting, and then proving the fix.

Redacted case study. Employer and product brands are anonymized; IP addresses, account identifiers, hostnames and credentials are omitted. Metrics are real, measured figures.

1 · Reporting-portal timeouts — a cross-stack root cause, proven in production

A reporting portal was timing out, and the easy story ("the analytics database is slow") was wrong. I measured the PostgreSQL source directly — the whole database was 626 MB and a full all-time aggregate ran in 55 ms — then read seven application repositories to trace the real causes:

7.35s → 1.0s
one endpoint after the fix, measured in prod (−86%)
~6.3s → 18ms
reconciliation summary, verified rewrite
7 repos
read to trace the real root cause

I handed the DBA team a tiered plan. The zero-risk tier — disabling JIT for the portal role — was applied in production and measured at −86% on a representative endpoint, confirming the diagnosis. For the array-join endpoints that config alone couldn't fix, I wrote and verified (read-only, row-by-row against the original) query rewrites: a reconciliation summary dropped ~6.3 s → 18 ms, a disbursement list 188+135 ms → 55 ms. It shipped as a three-architecture proposal (database-side optimization · analytics aggregation via refreshable views · CDC-fed mirrors), with the trade-offs — not just the SQL.

2 · Bot & audit-trail forensics

A single client IP stopped appearing in a merchant portal's audit trail after a certain date, while a traffic burst was flagged on the gateway. I traced the full request path through the code — Gateway → application request filter → message queue → logging worker → MongoDB — and established that the audit trail only records requests that reach the app, so the disappearance was most likely an infra-level block, not a code change.

SignalFinding
Automated-login success~98.9% across 4,610 audit rows
Single-day gateway burst12,325 hits, #1 by route
Fraud-detection evasioncadence ~1 req / 10 min — far under the rate threshold; empty user-agent
Data survivabilitysource purged after ~3 months; the only surviving copy was in the warehouse raw layer
Integrity caveataudit IPs derive from client-controllable headers → spoofable

3 · Cross-system financial reconciliation

Warehouse vs the product's own analytics store

A VA report showed a 2.2× row gap (~31K vs ~67K) that four other report legs didn't. I root-caused it to the source's transactional→analytics sync accumulating one row per historical payment key, re-grained the warehouse join to reproduce the stakeholder number, and caught a date-field bug affecting 54% of rows. Final match within 0.02% — and the warehouse turned out to be more complete than the source, which had silently dropped 21 valid transactions.

Cross-platform discrepancy

Classified ~700 mismatched rows by account prefix and proved 621 were by-design (routing splits, key recycling), narrowing the genuine-loss escalation to 19 rows.

4 · Build-vs-buy — semantic-layer evaluation

Evaluated an open-source semantic layer as a governed metrics layer over the warehouse, with explicit kill-criteria. Verdict: NO-GO.

5 · Capacity, cost & monitoring

~128 GiB
broker disk reclaimed via retention right-sizing
~194 GB/node
warehouse storage reclaimed (stale partitions)

Stack

ClickHouse PostgreSQL — query planning, JIT Go / PHP (source reading) Kafka / Redpanda MongoDB Debezium Grafana Python