Designing Account and Interaction Systems for Content Columns and Video Communities

    This article explains how to design the account, session, progress-sync, comment, danmaku (bullet comment), favorites, notification, and subscription systems behind a content platform that combines article columns with video. Starting from the entry points visible on a typical homepage, it abstracts them into concrete backend problems: identity and access boundaries, cross-device state consistency, idempotent interaction pipelines, and observability—plus a suggested implementation order for teams building such a system from scratch.

    Designing Account and Interaction Systems for Content Columns and Video Communities

    1. Starting from Page Entry Points to Identify the Technical Problems

    The homepage or column page of a content service typically contains many entry points: reading and playback, login and registration, personal favorites, message notifications, subscription benefits, and various content channels. These entry points may look like mere UI elements, but each maps to a backend capability: identity recognition, content distribution, user state storage, interaction governance, and access control.

    The original page information mainly presents navigation and login prompts, with no details of any specific system implementation. This article therefore does not speculate about the internal architecture of any existing service. Instead, it abstracts these visible features into general engineering problems for building a content community: how to let guest users browse smoothly, how to give logged-in users a continuous experience across devices, and how to make interaction and entitlement systems operate under clear, trustworthy rules.

    For a content community that combines columns and video, the technical design should answer three questions first. First, which content is publicly accessible and which operations require confirmed identity. Second, how to reliably store state such as playback records, reading progress, and favorites. Third, how comments, danmaku, and messages can run stably under high concurrency and governance requirements. Page design is only the presentation layer of these rules; it cannot replace backend constraints.

    2. Establishing a Clearly Layered System Structure

    A logical structure that is easy to reason about can be expressed as:

    User clients → Access layer → Business modules → Data and infrastructure

    The access layer handles request routing, session identification, basic rate limiting, and unified error handling. Business modules can be divided by domain: accounts, content, playback records, interactions, favorites, notifications, and entitlements. Data and infrastructure include relational storage, caching, object storage, message queues, logging, and monitoring with alerting.

    This division does not mean the project must be split into many independent services from day one. An early-stage system can adopt a modular monolith, with responsibilities and data-access boundaries clearly defined. Only when a module develops independent scaling, team-ownership, or fault-isolation needs should you evaluate splitting it out. Premature splitting introduces network calls, distributed transactions, deployment coordination, and debugging costs.

    You should also distinguish content resources from business metadata. Article bodies, cover images, and media files may be stored in different ways, but metadata such as content identifiers, publication status, author attribution, and visibility scope must have a stable source of truth. Clients should not judge whether content is accessible based solely on a resource URL; the backend should return results according to current state and permissions.

    3. Defining the Boundaries of Guests, Accounts, and Sessions

    Being logged out does not mean being unable to use the service. Public columns, basic search, and content allowed for public playback can be offered to guests; favorites, comments, personal messages, and cross-device records typically require an account identity. A reasonable login prompt should appear when the user triggers an operation that requires identity, rather than indiscriminately blocking all browsing.

    The account system needs to distinguish three concepts:

    1. Account identity: who the user is, such as the internal user identifier and account status.
    2. Login session: whether a given visit has completed authentication and whether the session is still valid.
    3. Business permission: whether the user can perform a specific operation, such as posting a comment or accessing restricted content.

    Successful authentication does not imply full permissions. A suspended account may still hold a valid session yet be barred from posting interactive content. An account whose subscription has expired can still log in, but should no longer receive benefits that have lapsed.

    Session management should support expiration, revocation, and handling of anomalous access. Credentials must never be placed in publicly accessible links or written into ordinary business logs. If you use session credentials automatically carried by the browser, you must also defend against cross-site request forgery. For text-submission entry points such as comments, apply both input validation and output escaping so that malicious content is not treated as executable page content.

    Registration and account-recovery flows need rate limiting to prevent credential enumeration and bulk abuse. Error messages should balance comprehensibility with information minimization, avoiding exposure to unauthenticated requests of sensitive facts such as whether an account exists.

    4. Treating Cross-Device Record Sync as a Consistency Problem

    Playback progress and reading position are important data for a continuous experience, but they are not simply “writing a number into a database.” The same account may use multiple devices at once; requests may arrive late, be submitted twice, or be re-uploaded after an offline recovery.

    A progress record can include the user identifier, content identifier, progress position, content version, record version, and session identifier. Video progress can also include media duration to validate that a position is plausible. Column reading position can use a paragraph anchor plus an intra-paragraph offset, rather than relying solely on scroll pixels, which are easily affected by screen size.

    The sync strategy must address the following issues:

    First, do not simply take the maximum playback position. A user may deliberately rewind, and a smaller position may be the most recent intent.

    Second, do not unconditionally trust client timestamps. Client clocks drift, and malicious requests may forge future times, preventing normal records from ever overwriting them.

    Third, the server’s receive order does not necessarily equal the user’s operation order. An old request arriving late after network retries may overwrite newer state.

    A viable approach is to use a server-side record version, combined with a monotonically increasing sequence number within a session, to detect duplicate or stale submissions. Cross-session conflicts require explicit product rules—for example, returning a conflict status and asking the client to refresh, or retaining each device’s latest state in the record detail and letting the user choose where to resume. There is no single merge rule that fits every scenario.

    Progress reporting should not happen every second either. Combine periodic reporting with key-event reporting, attempting submissions when events such as pause or content switching occur. At the same time, recognize that requests during page close or network interruption may fail, so periodic saves are still necessary. When submission fails, the client can hold pending records briefly and set a retry ceiling to avoid generating endless invalid requests.

    5. Building a Traceable Comment and Danmaku System

    Comments and danmaku (bullet comments overlaid on video) are both user-generated content, but they are organized differently. Comments usually attach to a content item or a reply relationship, emphasizing discussion context; danmaku attaches to a media time position, emphasizing real-time expression during playback. The two can share account verification, anti-abuse, and moderation capabilities, but they should not be forced into an identical data model.

    A comment record typically needs the content identifier, author identifier, body text, parent relationship, creation time, and status. Danmaku additionally needs the corresponding media position. For reply structures, limit the displayed depth and keep parent relationships traceable, avoiding complex nesting that burdens both queries and reading.

    The interaction publishing pipeline can be summarized as:

    Identity and permission check → Parameter validation → Anti-abuse check → Content status determination → Persistence → Display update and notification

    Whether you adopt pre-publication review, post-publication governance, or risk-tiered handling depends on content type and operational rules. Whichever approach you choose, clients must correctly display statuses such as pending, public, hidden, and deleted—“request received” must not be mistaken for “content published.”

    To prevent duplicate comments caused by network retries, assign a request identifier to each publish operation and have the server handle idempotency within a clearly defined scope and validity window. Rate limiting should combine signals from the account, session, source, and content object, rather than relying solely on network address, since many legitimate users may share the same egress.

    Deletion and hiding also need to be distinguished. Hiding can temporarily stop display; deletion should follow data-retention rules. Report handling and administrative actions should have audit records, but logs should not unnecessarily duplicate complete sensitive content.

    6. Keeping Favorites, Messages, and Entitlements Semantically Distinct

    A favorite is a persistent relationship between a user and a content item. You can prevent duplicates with a unique constraint on the user identifier plus content identifier, and design both add and remove as idempotent operations. Favorite lists must also handle content takedown, deletion, and changes in access scope—having once favorited something must not bypass current permissions.

    The message system should manage notification records and delivery results separately. The notification record answers “what happened”; the delivery result answers “whether it reached a given device.” Read/unread state usually belongs to the relationship between a user and a message, not to the message itself as a global property. For different categories such as comment replies and system announcements, provide reasonable preference settings and aggregation mechanisms so that large volumes of repetitive reminders do not degrade the experience.

    Business actions and notification generation also need consistency handling. For example, if a comment is written successfully but notification delivery fails, the comment should not be rolled back or lost. You can record a pending event within the same business transaction, then have a background task complete delivery through a message queue. Consumers should handle duplicate events and provide failure retries plus a manual investigation path.

    The entitlement system must be separated from UI entry points. A badge displayed on the client does not mean the backend has granted access; hiding a button does not truly block access. The server should validate against entitlement validity periods, content scope, and account status. For restricted media resources, the resource distribution path itself also needs access control—otherwise, even if the application API enforces checks, the resource may still be accessed by bypassing it.

    7. Performance Optimization Must Not Sacrifice Authorization Correctness

    Column bodies and content detail pages typically have high read frequency, so public, stable data can be cached. A user’s favorite status, unread messages, and personal entitlements vary significantly per individual and should not be mixed into shared page caches—otherwise one user’s data may be returned to another user.

    Cache design must account for content withdrawal and permission changes. If the cache is not invalidated promptly after public content is taken down, stale pages may continue to be displayed. You therefore need to define cache TTLs, active invalidation mechanisms, and the scope of real-time checks for critical operations. Non-critical display information such as content counters can lag briefly, but access permissions should not rely solely on long-lived caches.

    When backend load rises, you can prioritize delaying non-critical tasks such as interaction counter updates and notification aggregation. Account security checks and content authorization should not be degraded through “allow by default.” Reading public pages, submitting personal state, and performing payment-related operations should each use different timeout and failure-handling strategies.

    8. Closing the Loop with Testing, Observability, and Privacy Constraints

    Testing should revolve around business invariants, not just whether an API returns success. Key scenarios include: an expired session cannot perform protected operations; duplicate requests do not create duplicate favorites or comments; old progress does not unconditionally overwrite new progress; hidden content does not appear in normal lists; lapsed entitlements cannot continue to access restricted resources.

    Monitoring should cover request latency, error rates, queue backlogs, and business outcomes simultaneously. For example, an increase in login failures needs to be broken down into user input errors, authentication service faults, and malicious attempts. An increase in record-sync conflicts should trigger investigation of client versions, retry strategies, and merge rules—not just a glance at the overall success rate.

    Playback history, reading records, and messages are user behavior data. The system should follow the principle of data minimization: define collection purposes, retention periods, and deletion paths clearly, and establish a process for handling data after account deletion. Debugging logs and business data should be governed separately, avoiding long-term storage of credentials or full personal information merely for troubleshooting convenience.

    9. A Suggested Implementation Order

    In the initial phase, first complete public content access, account sessions, and backend permission checks, establishing a testable baseline path. Next, implement favorites and single-device record storage, then introduce cross-device sync and conflict handling. Comments, danmaku, notifications, and complex entitlements can be added incrementally as needed—but before each module goes live, its state transitions, idempotency semantics, failure recovery, and data-retention rules should be clearly defined.

    The technical value of a content column and video community lies not in the number of page entry points, but in whether the business rules behind those entry points are consistent, explainable, and recoverable. With identity security as the foundation, user state synchronization as the connective tissue, and interaction governance plus observability as the safeguards, scattered features can be organized into a stable content service system.