A Decade of Recommendation System Engineering: Architecture Evolution Across Five Tracks
The author recounts ten years of hands-on recommendation system engineering, tracing five parallel evolution tracks—algorithms from LR to deep learning, recall sources from inverted index to vector search, online architecture from monolith to split services, offline pipelines from scattered scripts to a layered data warehouse, and user interest modeling from sparse tags to embeddings and sequence modeling—emphasizing that each change was driven by concrete bottlenecks, not abstract best practices.
Reading font

1. Introduction
The author worked on recommendation systems from roughly 2013 for nearly ten years. While algorithms (LR → GBDT → DNN → large models) are memorable, industrial systems are defined by implementation choices and details. When user volume, content volume, business complexity, and iteration speed grow, the question becomes which component breaks first and what “non-algorithmic” changes are made to adapt.
This final article in the Recommendation System Architecture series stitches together previously covered modules—features, profiles, recall, ranking, re-ranking, experimentation, and Feeder—to explain why online services split or merge, and why offline processing evolved from SQL scripts to a platform. The path described is the author’s real experience, not a universal prescription.
2. Evolution Map: Five Concurrent Tracks
The author identifies five tracks that evolve simultaneously but not in lockstep:
Algorithms: LR → GBDT → DNN; sequence modeling and multi-objective prediction discussed later.
Recall: Started with inverted index and popular items; added collaborative filtering (CF), exploration, then vector recall.
Online Architecture: Began with logic concentrated in an Engine service; gradually split out Traffic Splitter, Prediction Server; User Profile started separate, later merged into Feature Server as model upgrades turned profiles into user features.
Offline System: From scattered tasks → platform → data warehouse.
Features & User Interest: From categories/keywords → richer tags (entities, topics) → unified representation → embeddings + long/short-term interest.
These tracks advance asynchronously because teams patch bottlenecks piece by piece. Some changes depend on others being ready first (e.g., vector recall requires vector production and index update capability). The author stresses evaluating each stage by what problem it solved then, and what trade-offs (costs, complexity) it introduced.
3. Algorithm Evolution: LR → GBDT → DNN
LR era: Simple, interpretable, fast training. Limited expressiveness required massive manual feature crossing; engineering effort centered on feature engineering.
GBDT era: Trees learn feature combinations automatically. Improved offline metrics but increased online scoring latency. Shortly after GBDT launch, the Prediction Server was split out to allow independent scaling of compute-heavy scoring (details in section 5).
DNN era: Networks learn complex interactions, reducing manual crossing. Engineering shifts to sample construction, feature input pipelines, and model deployment. The existing Prediction Server enabled independent model release cadence and inference resource allocation; hardware choice depends on model size, traffic, and latency budget.
Key insight: Swapping a stronger model is never just changing training code and the inference engine. It ripples through feature recomputation, online feature engineering, offline sample regeneration, retraining, etc. The engineering scaffolding around the model—not the model itself—consumes the bulk of effort and drives system change.
4. Recall Evolution: Adding Recall Sources
Ranking models rotated several times; recall grew by adding complementary candidate sources to plug coverage gaps.
Inverted index + popular: Initial stage. Inverted index on content categories/keywords (search-style); popular items as fallback and cold-start coverage. Goal: basic personalized delivery.
Collaborative Filtering (CF): Uses similar-user or similar-item behavior to surface associations missed by tag matching. Example: a user hasn’t seen a category but behaviorally similar users have. Risk: bias toward popular items.
Exploration: Two roles: (1) expose users to unseen interest directions; (2) give cold-start items early impressions so the system learns their quality. Exploration consumes impression quota; too high hurts short-term CTR, so quota is capped and downstream feedback monitored.
Vector recall (Two-Tower): Maps users and items into a comparable embedding space, capturing behavioral/semantic similarity beyond exact tags. User tower encodes user features/profile; item tower encodes item features. Trained on selected positive/negative samples; non-exposed items cannot be treated as negative. Item vectors written to online retrieval index via Feeder (covered in article 17); user vector queries the index at serve time.
Each new source adds candidate quota management, deduplication, fusion, and validation that it truly expands coverage. Multi-recall engineering details referenced in article 13.
5. Online Architecture Evolution: Splitting and Merging
Architecture decisions tracked business state and team structure.
Monolith phase
All logic—traffic splitting, engine, recall calls, LR scoring, re-ranking—in one service. External User Profile service stored profiles; recall sources (inverted index, popular) lived in Redis. Single backend team, fast initial delivery. Downside: blurred boundaries (e.g., new model required changes in splitting logic).
Split 1: Traffic Splitter
Separated because traffic governance (experiment routing, canary, fallback) had a clear boundary from core recommendation compute. Post-split, Traffic Splitter and Engine scale independently; parameter-tuning experiments iterate faster.
Split 2: Prediction Server
Triggered by GBDT’s higher inference cost plus growing traffic. Previously Engine + Prediction co-deployed; scaling meant scaling both. Independent Prediction Server allows compute-optimized instances, separate autoscaling policies, independent release cadence, cleaner model management, and higher model iteration frequency.
Split 3: Feature Server
Before: features stored as raw Redis keys (U_XXX, D_XXX, C_XXX). Key definitions, versions known to Engine, Prediction Server, and Feeder—tight coupling; any key/version change required coordinated multi-service updates. Feature Server encapsulates storage, versioning, read/write, dual-version batch switching; callers use a stable interface.
Merge: User Profile into Feature Server
As models advanced, User Profile’s stored profiles became just another set of user features already present in Feature Server. Keeping a separate service added inconsistency risk and an extra Feeder target. Merging eliminated a service, a pipeline sink, and potential profile/feature drift.
Takeaway: Splitting and merging are both tools; service boundaries follow real needs, not a predefined “advanced” architecture.
6. Offline System Evolution: Scattered Tasks → Platform → Data Warehouse
Three overlapping phases; daily batch always retained, later supplemented by a 5-minute near-real-time (NRT) pipeline (5 min = batch cycle; online availability depends on compute, distribution, load).
Phase 1: Scattered Tasks
Content in HBase; daily user feedback on HDFS. Pipelines (content, user profile, daily feedback stats) ran on separate machines via crontab. No unified organization; logic duplicated across repos. Frequent inconsistencies: e.g., “7-day click count” computed over 7 calendar days in one pipeline, over rolling 7 days from run time in another → feature mismatch.
Phase 2: Initial Platform
Content Pool daily snapshots dumped to HDFS alongside feedback logs. Unified scheduler introduced. Feature computation partially standardized via shared libraries. Result: organized pipelines, noticeable drop in feature inconsistency.
Phase 3: Data Warehouse
Even with shared libraries, pipelines still read date-partitioned files independently, repeating similar transformations. Warehouse changes how data is organized and consumed : reusable processed results materialized as shared tables for downstream consumption. HDFS remains storage. Adopts ODS/DWD/DWS/ADS layering + DIM tables. Benefits:
Layered modeling, unified processing paths—avoids per-pipeline file reads and recomputation.
DWS pre-aggregates reusable metrics; downstream pulls with consistent definitions.
Traceability & historical replay: DIM daily snapshots, Feature Log versioning enable point-in-time reconstruction.
Interactive analysis & business reports: ADS serves dashboards directly; previously ops wrote ad-hoc scripts.
Feedback data standardization & reconciliation: unified field definitions from client upload to warehouse, version compatibility, offline reconciliation catches missing data or definition drift.
Summary: scattered → platform = “can compute” to “compute reliably”; platform → warehouse = “reliably” to “consistently and traceably.”
7. Feature & User Interest Evolution
Stages are additive; production systems often run sparse tags and embeddings side by side.
Stage 1: Categories, Keywords, Basic Attributes
Content features: e.g., “category: sports”, “category: basketball”, “keyword: 2026 NBA Finals”, plus publish time, author, platform. User interest as sparse tag-weight vector: [CAT_篮球:0.8, CAT_足球:0.2, KW_NBA:0.77, KW_杨翰森:0.53, KW_中超:0.46]. True per-user personalization begins. Limitation: tags require manual definition and content-side labeling; long-tail and emerging terms missed.
Stage 2: Richer Tag System (Entities, Topics)
Added entities (specific persons, teams) and topics (thematic groupings like “2026 Playoffs”). User profile = enriched sparse vector + discretized base attributes (age band, gender, city, tenure, activity level). Example combined vector: [CAT_篮球:0.82, CAT_足球:0.18, KW_NBA:0.76, ENT_杨翰森:0.58, TOPIC_2026NBA总决赛:0.66, AGE_25-30:1, GENDER_男:1, CITY_北京:1, REG_3年以上:1, ACT_高活跃:1].
Stage 3: Embeddings Added
Content side: semantic embeddings from title, body, entities, topics. User side: behavior aggregation, ID embeddings, or content embedding aggregation. Representation becomes hybrid: sparse tags + low-dim dense vectors. Tags remain interpretable and work with sparse history; dense vectors capture similarity tags miss. Trade-off: reduced interpretability, higher storage/retrieval cost.
Stage 4: Long- vs Short-Term Interest Separation
Previous vectors described overall preference without distinguishing stable vs transient signals. Introduced separate long-term (e.g., years-long team loyalty) and short-term (recent hot event) interest features, concatenated for the ranking model. Simple but effective.
8. Looking Forward from the Endpoint
The author no longer builds recommendation systems directly but tracks industry trends. From the system described above, several directions emerge.
User Understanding
Sequence modeling over compressed summaries: Prior tags → vectors → long/short split all compress history. Sequence modeling feeds time-ordered content IDs, action types, time gaps, context directly to the model, preserving order and recent intent. Cost: entire engineering stack must upgrade—sequence generation, storage, temporal alignment, dedup/truncation, online update/cache, train-serve sequence consistency; longer sequences exacerbate performance/cost trade-offs.
Candidate-aware interest extraction: Previously long/short features were static per request. DIN-style attention weights history per candidate; DIEN adds explicit interest evolution modeling. Example: scoring a basketball item, the model attends more to basketball history. Increases ranking compute; requires balancing history length, candidate set size, and latency.
Learning Loop
Data update and model learning have separate rhythms: User watches basketball videos → events enter recent sequence or update short-term features → next request may change ranking even without model parameter change. Learning new patterns requires exposure-feedback join, sample building, training, validation, release. Even 5-min NRT pipelines differ in what they refresh and when it goes live. Training has its own latency constraints: conversions may occur long after exposure; cannot label unobserved feedback as negative prematurely.
Training objectives must connect to final ranking decisions: Ranking only on CTR favors clickbait. Jointly predict click, dwell, interaction; combine signals per scenario; validate via online A/B. Cross-stage: if recall filters out low-CTR but high-dwell items, ranking never sees them. One approach: use ranking’s candidate scores as auxiliary signal for recall training, while monitoring coverage narrowing. Recall and ranking stay independently deployable; alignment is on what each learns and how stage-level trade-offs shape the final list.
Online Architecture
Further service-boundary refinement: volatile recall paths can deploy/scale independently, orchestrated by a recall gateway handling scheduling, fusion, fallback. Lightweight coarse-ranking between recall and fine-ranking to shrink candidate set; coarse-ranker deployment independence is a separate decision. As model count grows, model registry, capacity evaluation, release governance move to a model platform; prediction service remains inference-focused. Cited: Meta Engineering blog “Journey to 1000 models: Scaling Instagram’s recommendation system” on model registration, capacity planning, release governance.
Coexisting System-Level Patterns
Enhance multi-stage pipeline: Keep recall/coarse/fine/re-rank separation; boost each stage’s model capability; share representations or training signals across stages.
Cross-scenario/task model reuse: Shared model provides representations or predictions for multiple scenarios; each stage still organizes compute per candidate scale, latency budget, objective.
Generative recommendation in selected components: Model generates item IDs from behavior history, mapped to real items as an additional recall path; some attempts generate full ranked lists, merging recall+ranking. Generating IDs ≠ merging stages; production still handles item availability, business constraints, inference cost. Using LLMs to generate tags/profiles is a different use case—changes feature production.
9. Summary
Reviewing a decade of evolution reveals three patterns:
Evolution mixes replacement, addition, splitting, merging. The driver is the current problem and constraints. Multiple actions happen concurrently (model swap, recall addition, service split). Direction depends on the most pressing pain: model quality, capacity, iteration speed. No architecture is inherently “advanced”; fitness for current requirements is the metric.
Model changes propagate pressure to engineering pipelines. GBDT → higher inference cost + traffic growth → Prediction Server split. Vector recall → new vector production, distribution, index update workload. Future longer sequences → re-evaluate sequence storage and online compute cost. Build dedicated capabilities only when a concrete bottleneck appears.
From “make it work” to “make it scale.” Early phase asks “can we build this feature?” Post-launch asks “can we run it stably? iterate fast via canary?” Experimentation, observability, disaster recovery, feature consistency governance are horizontal capabilities born from scaling needs. 0→1 can be quick; 1→N at scale often takes far more time and effort.
The 18-article series concludes here. The author plans to correct any errors, then open-source the full set on GitHub for community refinement.
For questions about attribution, corrections or content rights, please contactand we will review it promptly.