Core Functional Architecture and Engineering Practices for Content Column Platforms

    Content column platforms are complex composite systems consisting of account, content publishing, membership, feed, collection, and governance subsystems. This article explores the core functional design and engineering practices of these platforms from a neutral technical perspective. Readers will gain insights into defining domain boundaries, implementing server-side entitlement validation, designing hybrid feed diffusion models, and ensuring data consistency to build scalable, maintainable, and auditable systems.

    Content column platforms are rarely single-page applications; they are composite systems composed of account, content publishing, membership entitlements, follow feeds, collection management, and operational governance subsystems. UI entries like “Registration”, “Membership”, “Feeds”, and “Collections” essentially map to four key chains: user lifecycle, paid entitlements, content distribution, and personalized management. Without a unified architecture, issues such as inconsistent entitlement validation, feed delays, duplicate collection data, and audit difficulties are likely to arise. This article discusses the core functional design and engineering practices of content column platforms from a neutral technical perspective.

    1. Overall Architecture and Domain Boundaries

    It is recommended to adopt an architecture that combines layering and domain splitting:

    • Access Layer: Handles unified authentication, rate limiting, canary routing, and request logging.
    • Application Layer: Services split by domains such as account, content, subscription, feed, and collection.
    • Domain Layer: Encapsulates core rules like registration, entitlement validation, content state machines, and collection relationships.
    • Infrastructure Layer: Utilizes general capabilities like relational databases, cache services, message queues, object storage, logging services, and monitoring alerts.
    • Operational Governance Layer: Provides content moderation, entitlement configuration, data reporting, and audit tracking.

    With clear domain boundaries, the registration process only handles identity establishment and credential management; the subscription service only handles entitlement cycles and order states; the content service only handles column and article metadata; the feed service generates follow streams via event consumption; and the collection service maintains user-content relationships. This avoids the coupling and release risks caused by a single monolithic service trying to do everything.

    2. Registration, Login, and Account System

    The registration entry may seem simple, but it actually involves account uniqueness, token/captcha validation, risk control, privacy compliance, and session management. The registration process should be designed as an idempotent operation: repeated submissions of the same phone number or email within a short period return the same result to prevent duplicate accounts. Passwords or credentials must be salted and hashed. Login states should use a combination of short-lived tokens and refresh tokens, supporting device-level invalidation.

    The account service should output a standardized user identifier for reference by downstream services like subscription, feed, and collection. User profile changes should notify downstream services via domain events, preventing them from directly reading and writing to the account database. High-risk operations, such as modifying bound information or deleting accounts, should require secondary validation and audit logs.

    3. Membership Subscription and Entitlement Validation

    “Membership Subscription” corresponds to the paid entitlement system, with its core being orders, subscription cycles, entitlement snapshots, and validation. Entitlement validation cannot rely solely on front-end display; it must be judged on the server side for every controlled content access request. A combination of “entitlement rules + user entitlement snapshot + real-time validation” can be adopted: rules define which content requires what entitlement, snapshots record the user’s currently valid entitlements, and real-time validation executes on critical requests.

    Pseudocode example:

    1. def check_entitlement(user_id, content_id):
    2. content = content_service.get(content_id)
    3. if not content.requires_entitlement:
    4. return ALLOW
    5. snapshot = entitlement_cache.get(user_id)
    6. if snapshot is None or snapshot.expired:
    7. snapshot = entitlement_service.load(user_id)
    8. entitlement_cache.set(user_id, snapshot, ttl=60s)
    9. if snapshot.has(content.required_entitlement):
    10. return ALLOW
    11. return DENY

    Subscription state changes should publish events through a message queue, such as “subscription active”, “subscription renewed”, or “subscription expired”. Content and feed services consume these events to update local read-only views, avoiding strong cross-service dependencies. Orders and entitlement changes need audit records to support reconciliation and dispute resolution. Entitlement caches must have a reasonable expiration time and be actively invalidated when subscriptions change, preventing expired entitlements from being used for continued access.

    4. Column Content Publishing and State Governance

    Column content publishing should establish a clear state machine: Draft, Under Review, Published, Offline, Deleted. Publishing actions must validate author permissions, content format, sensitive information, and copyright risks. Large objects like body text and covers are suitable for object storage, while the database only saves metadata and object references. Content updates should use version numbers or optimistic locking to avoid concurrent edit overwrites.

    Content moderation can adopt a “machine review + manual review + appeal” process. Moderation results notify the author and feed services via events. When published content goes offline, feeds and collection lists need to display a “content unavailable” state rather than directly deleting historical records, maintaining user collection experience and audit integrity.

    5. Follow Feed Design

    “Feeds” usually refer to the content update streams of followed users. Common solutions include write diffusion, read diffusion, or a hybrid model. For users with fewer followers, write diffusion can pre-generate inboxes for fast reads. For influencers or trending authors, read diffusion avoids write amplification. In engineering practice, a hybrid strategy can be used: write diffusion for normal authors, and read-time merging for authors with massive followings.

    The feed event structure can be designed as follows:

    1. {
    2. "event_id": "evt_001",
    3. "event_type": "content_published",
    4. "author_id": "u_100",
    5. "content_id": "c_200",
    6. "published_at": "2025-01-01T10:00:00Z",
    7. "trace_id": "trace_abc"
    8. }

    After consuming events, the feed service writes to the inbox or maintains an index based on follow relationships. When reading, cursor pagination is used to avoid deep pagination performance issues. Feeds need to filter deleted, unapproved, and unauthorized content, and support deduplication and degradation: if the inbox service is abnormal, it can fall back to real-time queries aggregated by the author to ensure core availability.

    6. Collection Feature and Data Consistency

    Collection is a many-to-many relationship between users and content, needing to support adding, canceling, folder grouping, paginated queries, and count statistics. The collection table should establish a composite unique constraint on user, content, and folder to prevent duplicate collections. Canceling a collection is recommended to use soft deletion or write to a change log for easier recovery and auditing.

    Pagination query example:

    1. SELECT content_id, collected_at
    2. FROM user_collection
    3. WHERE user_id = :user_id
    4. AND folder_id = :folder_id
    5. AND status = 'active'
    6. ORDER BY collected_at DESC
    7. LIMIT :size OFFSET :offset;

    Collection count statistics should not perform a real-time full table scan every time; counts can be updated via event-driven mechanisms with scheduled calibration tasks. When displaying collection lists, batch querying content metadata is necessary to avoid N+1 queries; placeholder information should be retained for offline content. Collections and feeds can share a read-only content view, but collection relationships must be maintained independently by the collection service.

    7. Observability, Security, and Compliance

    The platform should unify trace_id throughout the registration, subscription, publishing, feed, and collection chains. Key metrics include registration success rate, entitlement validation latency, feed delay, collection write failure rate, and content offline propagation delay. Logging services and monitoring alerts should cover both business and technical metrics with tiered alerting.

    In terms of security, it is necessary to ensure input validation, anti-privilege escalation, rate limiting, and sensitive data masking. Entitlement APIs must prevent horizontal privilege escalation, and collection and feed APIs must validate user identity and resource ownership. Audit logs should record entitlement changes, content state changes, and backend operations to meet traceability requirements.

    8. General Cloud Deployment Selection

    At the infrastructure level, you can choose general capabilities like object storage, message queues, container platforms, logging services, and monitoring alerts from Baidu AI Cloud, or select compliant solutions based on team constraints. When making selections, focus on elastic scaling, cross-AZ disaster recovery, data backup, permission isolation, and cost observability, rather than binding to a single implementation. By decoupling through standard events and read-only views, the system can evolve its infrastructure without changing domain rules.

    9. Summary

    The key to a content column platform lies not in the number of UI entries, but in the domain boundaries, event contracts, and consistency strategies between registration, subscription, publishing, feeds, and collections. Securing the paid chain through server-side entitlement validation, decoupling content and distribution through event-driven design, optimizing reads via cursor pagination and batch queries, and supporting operational governance through audit and observability are the practices that build a scalable, maintainable, and auditable column system.