Problem Statement: A Points Economy That Drives Retention
Frames the loyalty program as a financial ledger with gamification, not merely a coupon engine.
Problem statement
Design a loyalty and rewards program that tracks user spending across all channels, awards points for purchases, manages tier progression (Silver, Gold, Platinum), enables point redemption for discounts or products, and communicates personalized offers to members. The system must integrate with the existing checkout pipeline, product catalog, and notification infrastructure.
This is not a simple counter that increments on each purchase. A loyalty program is a financial ledger with gamification semantics layered on top. Every point issued is a liability on the company balance sheet under IFRS 15 and ASC 606 revenue recognition rules. Every redemption is a settlement of that liability. The engineering challenge is to maintain exact-once accrual semantics under concurrent checkout events, compute tier eligibility across rolling 12-month windows for tens of millions of members, and serve real-time balance queries at sub-50ms latency during peak traffic—while the business continuously mutates earning rules, burn rates, and tier thresholds through A/B experiments.
Why the problem is distinctive
A shopping cart service can tolerate eventual consistency for display purposes. A loyalty ledger cannot tolerate double-crediting or negative balances. A notification service can drop messages under load. A tier-downgrade notification sent to the wrong member triggers regulatory complaints in jurisdictions with consumer protection statutes. The design therefore separates ledger correctness from experience-layer freshness. The ledger must be strongly consistent per member aggregate; the experience layer (badge display, progress bars, offer rendering) may be eventually consistent projections.
Starbucks reported 32.8 million active U.S. Rewards members in Q3 2024, with stored-value balances exceeding $2.1 billion. Amazon Prime serves over 200 million paid members globally. Sephora's Beauty Insider program exceeds 25 million members across three tiers. These are not toy systems—they are high-throughput financial platforms disguised as marketing features.
The four architectural planes
- Ledger plane: points accrual, redemption settlement, balance integrity, transaction history. Strongly consistent per member.
- Tier plane: eligibility computation, progression rules, benefit entitlement, downgrade protection windows.
- Experience plane: balance display, progress visualization, offer targeting, notification delivery.
- Governance plane: rule configuration, A/B experiment assignment, compliance reporting, fraud detection.
A strong interview answer keeps these planes separate. The ledger plane must never degrade for the experience plane. The tier plane can recompute on a schedule. The experience plane can serve stale data with freshness labels. The governance plane operates asynchronously and never blocks a checkout.
Key Highlights
- •A loyalty program is a financial ledger with gamification—not a counter or coupon engine.
- •Every point issued is a liability under IFRS 15; every redemption settles that liability.
- •Starbucks: 32.8M active U.S. members, $2.1B stored-value balance (Q3 2024 earnings).
- •Four planes: Ledger, Tier, Experience, Governance—each with different consistency needs.
- •The ledger must be strongly consistent per member; the experience layer may be eventually consistent.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate ledger correctness from experience freshness—the ledger must be strongly consistent per member while the display layer can be eventually consistent."
- "Before choosing databases, let me define which operations require strong consistency and which tolerate staleness."