Founded in Germany in 2011 as a food delivery service, Delivery Hero has grown to become the world’s leading local delivery platform. The company had a landmark year in 2023, delivering on its ambitious financial targets, including generating €11.3bn ($12.4bn) Gross Merchandise Value in Q4 2023. Connecting a vast ecosystem of riders, restaurants, retailers, and partners, the company delivers everything from prepared meals to groceries, flowers, coffee, medicine, and more directly to the customer’s door — often in less than one hour.
Delivery Hero operates at global scale. With a product catalog offering more than 100 million items, it serves customers in over 70 countries across four continents under household names such as PedidosYa in South America, Glovo spanning Europe, Central Asia and Africa, foodpanda in Asia-Pacific, and talabat in the Middle East, amongst others.
The company is constantly exploring new technologies to improve the experience of its customers. Ensuring stock outages never leave customers wanting, Delivery Hero has built a new Item Replacement Tool providing hyper-personalized product recommendations in real time using state-of-the-art AI models and MongoDB Vector Search on Atlas.
Batch processing slows down Quick Commerce
Delivery Hero’s Quick Commerce service enables customers to select fresh produce for delivery from local grocery stores. Around 10% of the inventory is fast-moving perishable produce that can quickly go out of stock. Without being able to recommend a suitable alternative to the customer, the company risks revenue loss and customer churn. Delivery Hero’s engineering and data science team built the Item Replacement Tool to address these risks.
“If a product is not available, our Item Replacement Tool recommends a suitable alternative,” explains Mundher Al-Shabi, Senior Data Scientist at Delivery Hero.
The first version of the replacement tool was built against product information stored in the company’s Google BigQuery data warehouse. Alternatives for each product were pre-computed and cached in a local Redis instance that served the Quick Commerce stock picking service used in-store by the Delivery Hero riders.
While this first version of the replacement tool helped the Delivery Hero engineering team showcase the art of the possible, there was one major drawback: The recommendations it generated were stale. This was because they were computed in batch runs once every 24 hours. If in the meantime an item went out of stock, was discontinued or delisted, or if the customer set a preference for a different replacement item in the app, the tool was still serving old, and therefore inaccurate data to the riders. Being unable to provide a suitable substitute, or with the replacement not being accepted by the customer, both revenue and satisfaction were impacted.


