GrabLara PuReum YimProblem & solution
Recipe for Building a Widget: How We Helped to “Peak-Shift” Demand by Helping Passengers Understand Travel Trends
Summary
Transport demand spikes during regular commuting hours often outpace driver availability, resulting in passenger wait times and fare surges. To mitigate these imbalances, Grab created the Travel Trends Widget for its mobile feed to redistribute ride requests toward off-peak windows. The widget uses machine learning forecasting to present historical supply-demand patterns alongside pricing trends for the upcoming two hours. To handle anticipated high query rates across millions of database entries, engineers periodically load precomputed trend data into an in-memory data structure rather than querying the database per request. The feature rolled out to feeds in Singapore and Jakarta within four weeks of initial development.
Context
Transport demand spikes during regular commuting hours cause ride requests to outpace driver availability, increasing passenger wait times and fare surge imbalances.
Approach / What changed
Grab built a Travel Trends Widget for its mobile feed using machine learning to forecast two-hour pricing trends, presented with behavioural science nudges and powered by an in-memory data store for high-throughput API serving.
Takeaways
Surge patterns exhibit daily seasonality, showing distinct hourly surge dynamics between different days of the week rather than uniform peak hours.
To maintain low latency under high QPS, backend engineers periodically stored aggregated trend data in an in-memory structure rather than querying the database directly on each API call.
Designers selected tapping as the primary interaction method for individual time bars to avoid conflicting with existing feed scrolling and scrubbing gestures.
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.