Architecture Design and Delivery Practices for Video Platform Homepage Recommendation Feeds
This article examines the architecture design and engineering practices behind video platform homepage recommendation feeds, which aggregate heterogeneous content types such as short videos, live streams, and episodic series. It details the three-tier system architecture spanning offline, nearline, and online layers, and walks through the end-to-end pipeline from content ingestion and metadata governance to multi-channel recall, multi-objective ranking, re-ranking controls, and feedback loops. Practical considerations including real-time updates, cold start handling, observability, and cost control are also discussed, providing a reference for engineers building or optimizing large-scale recommendation feed systems.
Video platforms today rarely display a single list of content on their homepage. Instead, users encounter a mixed feed composed of short videos, live streams, episodic series, variety shows, and original animated content. Each card in the feed typically shows a title, cover image, view count, comment count, duration, publish time, live status, and creator information, with the actual content spanning anywhere from tens of seconds to several hours. The engineering goal of such a page is not merely to “surface content” but to satisfy user interest, content quality, timeliness, diversity, and platform governance requirements within a limited number of exposure slots. This article discusses the architecture design and engineering practices for homepage recommendation feeds from a general technical perspective.
1. Overall Architecture: From Content Ingestion to Frontend Rendering
A recommendation feed system can be decomposed into three layers: offline, nearline, and online.
- The offline layer handles content metadata cleaning, label production, feature backfilling, model training, and batch evaluation.
- The nearline layer processes behavior log aggregation, real-time statistics, and feature updates.
- The online layer handles request parsing, recall, ranking, re-ranking, policy validation, and result assembly.
The frontend only consumes a standardized card protocol; it has no direct awareness of the underlying recall or ranking logic.
A deployable pipeline can be summarized as follows:
- Content ingestion: Receives videos, live streams, and other content objects; generates a unified content ID and type identifier.
- Metadata governance: Completes fields such as title, duration, publish time, creator, category, tags, review status, and copyright status.
- Multi-channel recall: Executes interest-based recall, popularity recall, freshness recall, follow-based recall, exploration recall, and live-stream timeliness recall in parallel.
- Ranking and fusion: Applies multi-objective scoring to candidate sets, fusing signals such as clicks, play duration, completion rate, interaction, and negative feedback.
- Re-ranking controls: Applies deduplication, interleaving, frequency capping, diversity constraints, creator exposure balancing, and policy filtering.
- Result assembly: Outputs card fields including title, cover, statistics, navigation parameters, and exposure tracking tokens.
- Feedback loop: Records impressions, clicks, plays, interactions, and negative feedback for offline evaluation and online iteration.
In terms of cloud infrastructure, general-purpose offerings such as object storage, message queues, container platforms, log services, and monitoring and alerting (for example, those available on Baidu AI Cloud) can serve as the underlying foundation for a recommendation feed system. Infrastructure choices should be evaluated based on throughput, latency, cost, and compliance requirements, and should not be conflated with business strategy.
2. Content Ingestion and Metadata Governance
Heterogeneous content is the first major challenge for a recommendation feed. Short videos, long videos, live streams, and episodic series have significantly different field structures: live streams carry real-time status, long videos have duration and episode structures, and episodic series are subject to season and copyright constraints. From an engineering standpoint, a unified content model should be established. Common fields are abstracted into a shared schema — content ID, content type, title, cover, duration, publish timestamp, creator ID, category, tags, review status, quality score, statistics, and availability status — while content-specific fields are stored as extended attributes.
Metadata governance must address three concerns: completeness, consistency, and explainability.
- Completeness requires fallback strategies when critical fields are missing.
- Consistency ensures that the same content version of metadata is used across recall, ranking, and display stages.
- Explainability requires that every candidate can trace its source and the policies applied to it.
For covers and titles, quality and compliance validation is necessary to prevent misleading or low-quality content from entering high-exposure positions.
3. Recall Layer: Parallel Channels and Candidate Pruning
The recall layer determines the upper bound of the candidate pool. Common recall channels include:
- Interest-tag-based recall from user profiles
- Content-similarity-based recall
- Popularity-based statistical recall
- Fresh content recall
- Follow-relationship recall
- Live-stream timeliness recall
- Exploration recall
Since different channels serve different objectives, their raw scores are not directly comparable. Each channel should retain a channel identifier and its original score for subsequent fusion.
Candidate pruning must balance coverage against computational cost. Quotas can be set per channel, exploration quotas reserved for long-tail content, and live content filtered by current broadcast status. The recall stage should avoid heavy model inference; instead, it should prioritize low latency and high coverage, leaving complex computation for the ranking layer.
4. Ranking and Fusion: Multi-Objective, Not Single-Metric
The ranking layer typically uses multi-objective fusion. Relying solely on click-through rate tends to over-expose clickbait or short-form content, so additional objectives are needed: play duration, completion rate, interaction rate, negative feedback rate, and content quality scores.
Fusion can be achieved through weighted scoring, layered models, or rule-based fallbacks. A simplified pseudocode example:
function rank(candidate, context):score = w1 * interest(candidate.user, candidate.topic)+ w2 * quality(candidate)+ w3 * freshness(candidate.publish_time, context.now)+ w4 * play_value(candidate.stats)+ w5 * interaction(candidate.stats)- w6 * negative_feedback(candidate.stats)- w7 * duplicate_penalty(candidate, context.exposed)return score
Feature consistency is a critical engineering concern: offline training and online serving must use the same feature snapshot. Statistical features need time windows and expiration policies. Fast-changing fields such as live status and review status should be validated at request time rather than relying on stale cached values.
5. Re-Ranking Controls: Diversity, Frequency Capping, and Governance
The ranked list still requires re-ranking before final delivery. Re-ranking objectives include:
- Balancing exposure across creators
- Interleaving content by type to avoid homogeneity
- Mixing long and short videos in a reasonable order
- Inserting live-stream cards at appropriate intervals
- Down-weighting previously exposed content
- Filtering negative-feedback content
- Enforcing policy and copyright rules
Re-ranking rules must be configurable and rollback-capable, with an audit trail retained for each intervention.
Diversity is not simply random shuffling. It should be enforced through constraints across content type, topic tags, duration range, and creator dimension. For instance, the number of consecutive items from the same topic should be limited in high-exposure positions, a certain proportion of fresh and exploratory content should be preserved, and overall relevance should not significantly degrade.
6. Real-Time Processing, Cold Start, and Feedback Loops
Homepage recommendation feeds are highly time-sensitive. Live stream starts, content publishing, and review status changes all require nearline updates. Behavior logs can be decoupled via message queues. A real-time statistics service maintains impression, click, play, and negative feedback metrics, which online services consume on demand. Real-time features need fallback strategies to prevent page unavailability during pipeline degradation.
Cold start applies to both content and users.
- Content cold start can rely on prior information such as titles, covers, tags, duration, and the creator’s historical quality.
- User cold start can leverage context, geographic location, time of day, and lightweight profiles, with a defined exploration traffic budget.
The feedback loop should include offline metrics, online experiments, and human spot-checking, rather than relying solely on a single short-term metric.
7. Observability, Quality Governance, and Cost Control
A recommendation feed system requires comprehensive observability: request tracing, recall channel hit rates, ranking latency, feature retrieval success rates, re-ranking rejection reasons, impression and click logs, and anomaly alerts.
Quality governance should cover clickbait titles, misleading covers, duplicate or reposted content, low-quality content, and clusters of negative feedback. High-exposure positions should include additional human review and policy fallback mechanisms.
Cost control can be approached from three angles:
- Control candidate pool size at the recall stage.
- Use tiered models at the ranking stage.
- Leverage caching and asynchronous logging in online services.
In terms of infrastructure, object storage handles covers and media assets, message queues buffer behavior streams, container platforms enable elastic scaling, and log services and monitoring support observability. Capacity planning should align with business peaks and compliance requirements.
8. Implementation Recommendations
A recommended path forward is to follow a “standardize first, close the loop second, then optimize” sequence:
- Standardize the content model and card protocol to resolve missing fields and state inconsistencies.
- Establish multi-channel recall and rule-based re-ranking to make diversity, frequency capping, and governance actionable.
- Introduce multi-objective ranking and real-time features, building offline evaluation, online experiments, and negative-feedback loops.
- Continuously optimize cost, latency, and privacy compliance.
The ultimate goal is to maintain an explainable, operable, and iterable balance among user interest, content ecosystem health, and platform governance.
