Design a FanCash Loyalty Ledger Shared Across Businesses

Last updated: November 29, 2026

Quick Overview

Design the service that tracks FanCash balances for fans who earn and spend across Fanatics commerce, collectibles and sportsbook, supporting earn, spend, expiry, reversal on returns, and an accurate balance shown at checkout.

Fanatics
System Design
Software Engineer
Fanatics
November 29, 2026
Software Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the service that tracks FanCash balances for fans who earn and spend across Fanatics commerce, collectibles and sportsbook, supporting earn, spend, expiry, reversal on returns, and an accurate balance shown at checkout.

FanCash sits in the shared Fanatics platform layer, so many teams depend on it and every bug is visible as money to a fan. The interviewer checks ledger thinking (append-only entries, not mutable balances), idempotency across many callers, and expiry semantics.

What the Interviewer Expects
  • Append-only double-entry style ledger with derived balances
  • Idempotency keys per business event
  • Pending versus available FanCash (earned on ship, not order)
  • Expiry handled by lots, consumed in a defined order
  • Reversals as compensating entries
  • Fast balance reads at checkout
Key Topics to Cover
Ledger design
Idempotency
Event-driven architecture
Expiry lots
Consistency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • A fan spends FanCash, then returns the item after the earned FanCash expired. What happens?
  • How do you reconcile the ledger with the finance system monthly?
  • How would you migrate from a mutable balance column to this design without downtime?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements

Operations: earn (pending until the order ships or a bet settles), activate, spend at checkout (hold then capture), reverse (returns, cancelled orders), expire. Reads: available balance and upcoming e...

High-Level Design

Producers (commerce order service, collectibles, sportsbook) send events to a FanCash API with an idempotency key such as order:123:earn. The ledger service writes immutable entries: `(entry_id, mem...


Submit Your Answer
Markdown supported

Related Questions