Design the Rakuten Points Ledger Across Ichiba, Card and Travel
Last updated: November 29, 2026
Quick Overview
Design the system that records points earned and spent across every Rakuten service, supports expiring campaign points, real-time balance checks at checkout, and reversals when orders are cancelled.
Rakuten
November 29, 20260
0
0 solved
Design the system that records points earned and spent across every Rakuten service, supports expiring campaign points, real-time balance checks at checkout, and reversals when orders are cancelled.
Points are effectively a currency inside the Rakuten ecosystem, issued by dozens of services and redeemed at checkout, so the ledger has to be correct to the point while handling huge campaign peaks. Interviewers probe double-entry thinking, idempotency, expiry and how balance reads stay fast without giving up auditability.
What the Interviewer Expects
- Model an append-only double-entry ledger rather than a mutable balance
- Make every earn and spend idempotent with a source event id
- Handle expiry as scheduled ledger entries, not silent deletes
- Keep a derived balance per user for checkout latency
- Explain reversal flows for cancellations and partial refunds
- Plan for Super Sale write peaks
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
- A user redeems points on an order that is later partially cancelled after some points have expired. What do you refund?
- How do you reconcile the ledger with each issuing service's own records nightly?
- How would you shard, and what happens to a user who is hot during a campaign?
- Points granted provisionally (pending) become usable only after delivery. How do you model that?
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: earn points from any service (purchase rewards, card spend, campaigns), spend points at checkout, reverse either on cancel or refund, show balance and an itemized history, expire batches o...
High-Level Design
Issuing services publish PointsEarned requests with a unique source_event_id to a Points API. The API writes to a ledger store sharded by user id. Each entry is double-entry: earning debits a fund...