Design Stars Virtual Currency Purchases and Gifting on Facebook Live
Last updated: November 29, 2026
Quick Overview
Design the system that lets viewers buy Stars, send them to creators during Facebook Live or Reels, and lets creators see and later cash out what they received.
Meta
November 29, 20260
0
0 solved
Design the system that lets viewers buy Stars, send them to creators during Facebook Live or Reels, and lets creators see and later cash out what they received.
Stars is Meta's virtual tipping currency, and the question blends a small ledger with a real-time UI moment. Interviewers check that purchases, balances, and gifts are ledger operations, and that the on-screen animation is decoupled from money movement.
What the Interviewer Expects
- Treat Stars as a stored-value ledger with purchase and gift transactions
- Handle in-app purchase receipts from app stores
- Make gifting idempotent and fast
- Show gifts in the live stream without coupling to the ledger write
- Convert received Stars to creator earnings
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you handle a refund from the App Store after the Stars were already sent?
- What happens when 50,000 viewers send Stars in the same minute?
- How do you prevent a viewer from spending Stars they do not have?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
Functional: buy Star packs (web or in-app), see balance, send N Stars during a live or on a reel, creator sees a live alert and a total, creator earnings accrue at a fixed rate per Star.
**Non-fu...
High-Level Design
- Purchase service: validates app store receipts or processes a card payment, then posts a ledger credit to the viewer's Stars account.
- Stars ledger: accounts for viewer balances, creator re...