Video Community Recommendation Feed Architecture and Engineering Practices

    This article explains how to design and operate a recommendation feed for a video community that combines short videos, long-form videos, live streams, topics, and posts. It covers content standardization, multi-source ingestion, candidate retrieval, ranking, diversity control, safety governance, performance, observability, experimentation, and a practical implementation roadmap.

    1. Scenario Breakdown and Core Challenges

    A typical video community homepage is not a single content list. It is a mixed feed that combines short videos, long-form videos, live streams, topics, image-and-text posts, and other content sources. Each item may include a title, cover image, duration, creator, publication time, popularity signals, engagement signals, and real-time status. The page may also provide category, live-stream, topic, and personalized recommendation entry points.

    From an engineering perspective, this type of homepage is a composite system that combines multi-source content aggregation, recommendation ranking, safety governance, and high-concurrency reads.

    The core challenges fall into four categories:

    1. Heterogeneous content sources: Different content types have different important fields. Short videos emphasize completion and engagement, long-form videos emphasize viewing duration and continued watching, live streams depend on real-time status and viewer counts, while topics depend on editorial configuration and timeliness. Without standardization, ranking and presentation logic become polluted with numerous special cases.
    2. Information density and ranking quality: Homepage space is limited, so the system must balance relevance, popularity, freshness, quality, diversity, and user fatigue. Ranking only by popularity causes the feed to become dominated by top content. Ranking only through personalization can create filter bubbles and cold-start problems.
    3. Engineering constraints: High throughput, low latency, cache consistency, moderation compliance, graceful degradation, fault tolerance, observability, and continuous experimentation must all be satisfied at the same time. A recommendation feed is part of an online request path, not an offline report.
    4. Governance and explainability: Content safety, copyright risks, low-quality content, manipulated engagement, and negative feedback require both proactive and asynchronous handling. The system should also be able to trace why an item was recommended or downranked.

    2. Information Architecture and Data Model

    The system can be divided into six core object types:

    • Content entities
    • Creator entities
    • Categories and tags
    • Engagement signals
    • Recommendation requests
    • Recommendation responses

    Content entities should use stable primary keys. Engagement signals are high-frequency time-series or aggregated metrics. Recommendation responses should remain associated with the online request context and exposure logs rather than being written back into the primary content table.

    A general content-card contract can be represented as follows:

    1. {
    2. "content_id": "string",
    3. "source_type": "short_video | long_video | live | topic | article",
    4. "title": "string",
    5. "cover_url": "string",
    6. "creator_id": "string",
    7. "duration_sec": 0,
    8. "published_at": "ISO-8601",
    9. "tags": ["string"],
    10. "category_id": "string",
    11. "heat_signals": {
    12. "play_count": 0,
    13. "interaction_count": 0,
    14. "completion_rate": 0.0,
    15. "negative_feedback_rate": 0.0
    16. },
    17. "safety_status": "pending | approved | limited | rejected",
    18. "updated_at": "ISO-8601"
    19. }

    The key design principles are:

    • Keep presentation fields separate from ranking fields.
    • Separate frequently changing signals from static metadata.
    • Treat safety status as an independent dimension that participates in retrieval and reranking.
    • Support schema versioning and evolution.
    • Provide default values and compatibility strategies for newly added fields.

    These practices prevent an upstream adapter upgrade from causing downstream ranking services to fail during parsing.

    3. Multi-Source Ingestion and Standardization

    The ingestion layer can use an adapter + message buffer + standardization pipeline architecture. Each content source is converted into a unified event through an adapter. The event is then written to a message queue for traffic smoothing, after which the standardization pipeline performs field mapping, time normalization, category mapping, deduplication fingerprint generation, and initial safety-state assignment.

    Standardization must address three major concerns: idempotency, deduplication, and state management.

    • Idempotency handles duplicate event delivery.
    • A deduplication fingerprint can combine the content primary key, creator, normalized title text, and media features.
    • A state machine constrains valid transitions between pending review, approved, limited, and rejected states.

    Example pseudocode:

    1. function normalize(event):
    2. card = adapter[event.source_type].map(event)
    3. card.content_id = stable_id(card)
    4. card.published_at = to_utc(card.published_at)
    5. card.tags = canonicalize(card.tags)
    6. card.fingerprint = hash(card.creator_id, normalize_title(card.title), media_digest)
    7. if exists(card.fingerprint) and not same_content(card):
    8. return mark_duplicate(card)
    9. card.safety_status = enqueue_review(card)
    10. emit("content_card_v2", card)

    After standardization, content cards are written to search and feature storage for use by retrieval, ranking, presentation, and moderation systems.

    The guiding principle is standardize once and reuse everywhere. Downstream services should not independently interpret the same source fields.

    4. Candidate Retrieval and Ranking

    The retrieval layer can run multiple strategies in parallel, including:

    • Popularity-based retrieval
    • Freshness-based retrieval
    • Tag and category retrieval
    • Following-based retrieval
    • Collaborative behavior retrieval
    • Semantic similarity retrieval
    • Editorial or operational configuration retrieval

    The results from each retrieval path should first be deduplicated and filtered before entering a unified candidate pool. At a minimum, filtering should consider safety status, regional and age-related compliance, recent exposure fatigue, blocklists, and negative feedback constraints.

    The ranking pipeline can be divided into pre-ranking, fine ranking, and reranking:

    • Pre-ranking uses lightweight features to reduce the candidate set quickly.
    • Fine ranking combines relevance, content quality, engagement predictions, freshness, and diversity-related features.
    • Reranking handles distribution, fatigue control, and exploration versus exploitation.

    The ranking score should not optimize for clicks alone. Completion rate, negative feedback, report rate, and diversity constraints should also be included to avoid damaging long-term user experience for short-term metric gains.

    Example pseudocode:

    1. function rank(candidates, user, context):
    2. filtered = candidates.filter(c => c.safety_status == "approved")
    3. filtered = filtered.filter(c => not_exposed_recently(c, user))
    4. for c in filtered:
    5. c.score = w1 * relevance(c, user)
    6. + w2 * quality(c)
    7. + w3 * freshness(c, context.now)
    8. + w4 * predicted_completion(c, user)
    9. - w5 * predicted_negative(c, user)
    10. ranked = sort_desc(filtered, "score")
    11. return diversify(ranked, max_per_creator=2, max_per_category=4, explore_ratio=0.1)

    Diversity control should be a first-class part of reranking rather than a post-processing patch. Limits can be applied by creator, category, and content type, while a controlled exploration ratio can be preserved for cold-start and long-tail content discovery.

    Negative feedback should flow back quickly. For example, content marked as “not interested” can be downranked or filtered for a short period.

    5. Quality, Safety, and Governance

    A practical safety strategy combines pre-publication review, asynchronous re-review, and online blocking.

    • Pre-publication review determines whether content can enter the candidate pool.
    • Asynchronous re-review handles reports, copyright issues, and model misclassification.
    • Online blocking performs another status check before generating a recommendation response, preventing stale cached states from exposing risky content.

    Quality governance should distinguish between low-quality and policy-violating content.

    Low-quality content can be identified through a combination of completion rate, engagement quality, clickbait characteristics, repetitive covers, and negative feedback rate. Typical actions include downranking, rate limiting, and reducing distribution.

    Policy-violating content should be blocked from exposure and routed into an appeal process. Every downranking and blocking action should record a reason code to support auditing and explainability.

    6. Performance and Availability

    Recommendation feeds are typically read-heavy and write-light systems. Multi-level caching, edge caching, asynchronous processing, and graceful degradation can help maintain latency and availability.

    A request path can be organized as:

    1. Parameter validation -> User context -> Multi-source retrieval
    2. -> Ranking -> Reranking -> Safety filtering -> Response assembly

    Recommended cache categories include:

    • Content-card caches
    • Retrieval-result caches
    • Ranking-feature caches

    Each cache requires an appropriate expiration policy and an active invalidation mechanism.

    When the ranking service is unavailable, the system can fall back to a mixture of popular and fresh content. When personalized features are missing, it can fall back to category-based popular content. If the moderation service times out, high-risk content should be rejected by default rather than allowed through.

    Rate limiting and circuit breaking should protect downstream services. Logs and metrics should cover the complete request path.

    7. Observability and Experimentation

    The system should provide request-level traces and content-level exposure logs. Important metrics include:

    • Latency percentiles
    • Availability
    • Retrieval coverage
    • Impression click-through rate
    • Completion rate
    • Negative feedback rate
    • Report rate
    • Diversity distribution
    • Moderation interception rate

    Experiments should use staged rollouts. Begin with a small traffic percentage to validate ranking weights and diversity parameters, then gradually increase exposure. Every experiment should define rollback conditions and guardrail metrics in advance.

    8. Implementation Roadmap

    A practical delivery sequence is:

    1. Standardization
    2. Multi-source retrieval
    3. Basic ranking
    4. Safety governance
    5. Diversity reranking
    6. Experimentation platform

    The first phase should unify the data contract and ingestion pipeline so that content can be managed, searched, and filtered consistently.

    The second phase should establish the retrieval and ranking loop.

    The third phase should complete negative-feedback handling, fatigue control, and end-to-end observability.

    This sequence enables the team to deliver a usable recommendation feed quickly while preserving room for later optimization and expansion.