Product architecture

How Lumen Reels works, end-to-end

A tour of the core flows: memberships, paywalled streaming, community, moderation, and payouts — plus the rules engine that ties them together.

Core system flow

Sign up

OAuth / email link

Pick tier

Free → Producer

Access rules

Rules engine

Watch

Streaming + DRM

Engage

Chat · groups

Access rules engine

Every content request is evaluated against a chain of predicates. The first match wins.

rule 01 — if content.premium == false → allow
rule 02 — if user.tier ≥ content.min_tier → allow (+ log watch)
rule 03 — if content.preview_seconds > 0 → allow with cap
rule 04 — if user.trial_active → allow (72h window)
rule 05 — if user.gift_credit > 0 → allow (decrement)
rule 99 — else → deny → prompt upgrade

Instant evaluation

Edge-cached JWT claims resolve rules under 15ms.

Deterministic

Same input, same outcome — auditable per user, per content.

Overrides

Admin can grant tier-lifts, gift access, or temporary trials.

Data model

users

· id

· email

· role

· tier_id

· status

· created_at

tiers

· id

· name

· price

· perks[]

· active

videos

· id

· creator_id

· premium

· min_tier

· url

· views

messages

· id

· from

· to

· body

· sent_at

notifications

· id

· user_id

· type

· payload

· read

reports

· id

· type

· target_id

· reason

· status

Payout pipeline

Ledger

Every payment is journaled

Attribute

Split by watch minutes + tips

Batch

Twice-monthly consolidation

Payout

ACH / wire / marketplace

Reversal safety
PII redacted
SOC 2 aligned
Audit trail per payout

Moderation flow

  1. Step 1

    Report submitted

  2. Step 2

    Auto-classified

  3. Step 3

    Queued by severity

  4. Step 4

    Human review

  5. Step 5

    Action + notify