ALEXKRI.NET
Resume Contact
← Back

Grab Redesigns Counter Service Storage for 50% Lower P99 Latency

Good reminder that the data model, not the database, is usually where the win hides. Grab’s anti-fraud counter service (~1 billion requests a day) stored 15-minute, hourly and daily counts as separate rows, so every event cost four round trips. Collapsing them into a single timestamp-ordered map per counter and moving to Aerospike cut p99 read latency roughly in half, on-disk data from ~3 TB to ~1 TB, and cost per node by 45-50%.

Read the source ↗