Ecommerce ops · Production
Guide to Building Online Recommendation Systems
The problem
Building recommendation systems that generate real-time recommendations from large candidate sets requires coordinating multiple complex subsystems, each with distinct performance, freshness, and cost trade-offs.
Workflow diagram · grounded in source
1
Candidate generation
ai_action
“Candidate generation is responsible for quickly and cheaply narrowing the set of possible candidates down to a small enough set that can be ranked”
2
Feature retrieval
integration
“At one or more points, the recommendation system will need to look up or compute data/features for the user and the candidates being considered. This data will fall into three categories: Item features, User features, User-Item cross fea…”
3
Filtering
validation
“Filtering is the process of removing candidates based on fetched data or model predictions. Filters primarily act as system guardrails for bad user experience”
4
Model inference
ai_action
“online model inference boils down to sending feature vectors to a model service to get predictions. Typically these models predict easily measurable downstream events, like Click Through Rate, Probability of a Purchase, Video Watch Time”
5
Pointwise scoring and ranking
ai_action
“Pointwise ranking is the process of scoring and ranking items in isolation; i.e., without considering other items in the output. The item pointwise score may be as simple as a single model prediction (e.g., the predicted click through ra…”
6
Listwise ranking
output
“Listwise ranking is the process of ordering items in the context of other items in the list. ML-based and heuristic-based approaches can both be very effective for listwise optimization”
Reported outcome
(not stated)
Reported stack
PostgresRedisDynamoDBFaissAnnoyMilvusElasticsearchLightFMXGBoost
Frequently asked questions
What did this team achieve with this AI workflow?
(not stated)
What tools did this team use?
Postgres, Redis, DynamoDB, Faiss, Annoy, Milvus, Elasticsearch, LightFM, XGBoost.
How is this ecommerce ops AI workflow structured?
Candidate generation → Feature retrieval → Filtering → Model inference → Pointwise scoring and ranking → Listwise ranking.