BRAMANTHYO ANDRIAN
← All work

Designing a near-real-time customer datamart for 500K writes per second

Architecture for a near-real-time datamart (26 feeds, 23 TB a day): Lambda design, data-quality circuit breakers and a write load cut by about 85%.

Data architect and proof-of-concept designer

−85%
projected database write load (about 300K → 40–50K a second)
23 TB
a day across 26 source feeds
30/30
proof-of-concept tests passed

Context

Marketing is moving to AI-driven personalisation. The batch datamart cannot use real-time triggers, and the campaign engine’s triggers cannot do complex modelling, so a near-real-time datamart has to bridge the two.

Role

Data architect: requirement and enterprise-architecture mapping, sizing, design, database selection and the proof-of-concept plan.

Approach

  • Size it. 26 source feeds, 23 TB a day, about 180M rows by 197 columns, 500K write and 10K read transactions per second at peak.
  • Lambda, not Kappa, to reuse the team’s skills and operations maturity.
  • Quality and security by design. Circuit breakers at stream and batch layers for completeness, timeliness, consistency and accuracy; schema registry, de-duplication and watermarking; TLS 1.3, AES-256 with key rotation, role-based access, secrets management, tokenization and audit, aligned with Indonesia’s PDP Law.
  • Cut the write load from roughly 200–300K to 40–50K a second with hourly throttling, buffering, minimal-column upserts, staging and merge, and tuned housekeeping, which avoided an expensive capacity expansion.
  • Pick the database from four candidates, then plan a cross-account proof of concept with synthetic load, throttling and fault handling.

Result

Design and impact analysis were completed, and the proof of concept closed on 7 July 2026 with all 30 tests passed.