Back to problems

Design a Food-Item Review System

System Design · DoorDash · Easy

Design a review service for individual food items. Customers can submit a review for a particular dish and read reviews from other diners. Cover the product contract, the write and read paths, how aggregate ratings are produced, moderation boundaries, and how the service scales. Each review is tied to one foodItem and one authorId. When a review is edited or removed, the visible aggregate rating must remain correct; it must never become silently corrupted or stale. Your…

Checking your access…