Problem
Design a food review system where users post order-tied reviews, vote on usefulness, and earn real-money rewards
- Handle bursty vote traffic on viral reviews without serializing database writes or spiking p95 latency
- Keep displayed vote counts fast and eventually consistent while guaranteeing exact, auditable payouts for real money
- Enforce strict one-active-vote-per-user rules and idempotent settlements against durable vote logs despite network retries
Key Test Points
- Durable vote log partitioned by review_id
- Async rollup worker to heal display drift
- Idempotent reward ledger with unique payout keys
Spot an issue or have a suggestion?