Problem
A travel company wants to show a relevant hotel to a customer who has just paid for a transport ticket. The team has five weeks before the high season, two engineers, one data scientist, and no ML platform or feature store. Collaborative filtering does not know the destination, the dates, or that the order was paid minutes ago and is not yet in the warehouse. A proper platform would take 4–6 months.
Example from the article: a user buys a Moscow → Sochi ticket for 10–17 July, and the order confirmation screen should offer hotels in Sochi for exactly those dates.
Solution in brief
Use the existing stack: Kafka for fresh orders, ClickHouse and Airflow for nightly aggregates, MongoDB as a temporary online store with one document per user, and a FastAPI service that reads only Mongo. The purchased ticket (the "target order") is the explicit context, and the front end gets a ready hotel search. The ranker sits behind this contract, so ALS can later give way to CatBoost.
Questions this case answers
- How to launch an online recommender within weeks when there is no feature store, and fresh events must be visible before the warehouse receives them
- How to keep the serving data layer stable while the ranking model changes from a simple factorization to a gradient-boosted ranker
- How to ship a first recommender system to production in a few weeks without a feature store or an ML platform?
- How to recommend hotels right after a customer pays for a ticket, when the order is not in the data warehouse yet?
Tools and methods
- Apache Kafka — realtime paid orders
- MongoDB — online store, the only source read at inference
- ClickHouse and Apache Airflow — nightly aggregates
- FastAPI — inference service
- ALS — v1 ranker: dot product of vectors stored in Mongo
- CatBoost — later ranker
- Popularity baseline — fallback to top hotels by
order_countin the city - A/B test — old selection against the model block
Google or a one-time email code. No password.