Design the Review Photo Upload and Processing Pipeline
Last updated: November 29, 2026
Quick Overview
Design the system that lets users and business owners upload photos to a business page, processes them (resize, moderation, classification into food, menu, interior), and serves them quickly on business pages worldwide.
Yelp
November 29, 20260
0
0 solved
Design the system that lets users and business owners upload photos to a business page, processes them (resize, moderation, classification into food, menu, interior), and serves them quickly on business pages worldwide.
Photos drive engagement on Yelp business pages, and Yelp classifies them so the page can show food shots first and menus in their own tab. The interviewer wants an async pipeline with clear upload, processing and serving paths, and attention to moderation since inappropriate photos on a business page hurt both users and owners.
What the Interviewer Expects
- Use direct to object storage uploads with presigned URLs
- Make processing asynchronous through a queue with idempotent workers
- Generate multiple renditions and serve through a CDN
- Include moderation and ML classification before a photo is public
- Define the metadata model and how the business page queries it
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 would you deduplicate the same photo uploaded twice?
- How would you reprocess all historical photos when the classifier improves?
- How do you handle an owner disputing a photo on their page?
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: upload one or many photos from mobile with a caption, attach them to a business and optionally a review, show them in under a minute, classify into labels, block unsafe content, allow dele...
High-Level Design
- Client asks the Photo API for an upload slot; the API creates a
photosrow with statuspendingand returns a presigned URL for object storage (S3). - Client uploads bytes directly to storage, ...