GrabAnthony McCallumProblem & solution
How Grab built a scalable, high-performance ad server
Summary
Grab transitioned from an off-the-shelf MVP to an in-house ad serving system to accommodate business scale, hyperlocal requirements, and machine learning personalization. The architecture orchestrates core microservices and data pipelines across sequential steps: targeting, capping, pacing, scoring, ranking, pricing, and tracking. ElasticSearch serves as the targeting ads repository, while ScyllaDB acts as the high-throughput stats store fed by Kafka streams and data pipelines. The system operates on key engineering principles including parallelization and tuned latency limits, graceful fallbacks for slow dependency calls, and a unified server serving all ad types across the superapp.
Context
An off-the-shelf MVP proved the ads business model, but Grab needed an in-house platform to integrate with its superapp ecosystem, support exponential scale, handle hyperlocal user experiences, and incorporate machine-learning-driven personalization.
Approach / What changed
Grab built microservices, streams, and pipelines that execute a multistep ad serving flow utilizing ElasticSearch for ad targeting, ScyllaDB for capping and pacing stats, and Kafka data pipelines to capture tracking events.
Takeaways
ElasticSearch serves as the ad repository to query candidate ads across diverse targeting criteria like search keywords, location, and user preferences.
Kafka event streams feed impression, click, and purchase data back into ScyllaDB to enforce real-time campaign budget caps and pacing limits.
To protect user-facing latency against slow dependency calls, the ad server relies on strict timeouts and falls back to non-personalized results instead of dropping the ad.
Source and freshness
- Source
- engineering.grab.com
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.