Design the Listing Photo Upload and Processing Pipeline
Last updated: November 29, 2026
Quick Overview
Hosts upload dozens of high-resolution photos when creating a listing, often from phones on weak connections. Design the system that ingests these uploads, produces resized and optimized variants, runs quality and safety checks, and serves photos fast to guests worldwide.
Airbnb
November 29, 20260
0
0 solved
Hosts upload dozens of high-resolution photos when creating a listing, often from phones on weak connections. Design the system that ingests these uploads, produces resized and optimized variants, runs quality and safety checks, and serves photos fast to guests worldwide.
Photos are the main driver of booking conversion on Airbnb, and listing pages load many images per view. The interviewer wants a clean split between upload, asynchronous processing, and delivery, plus thought about resumability, moderation, and CDN caching.
What the Interviewer Expects
- Upload directly to object storage with pre-signed URLs, not through app servers
- Support resumable or chunked uploads for mobile
- Process asynchronously with a queue and idempotent workers
- Generate multiple sizes and modern formats for responsive delivery
- Serve through a CDN with immutable, content-addressed URLs
- Include moderation and quality checks before publishing
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 detect the same photo reused across unrelated listings?
- How do you reprocess every photo when you add a new format such as AVIF?
- A host replaces a cover photo. How do you avoid serving stale images?
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 up to about 100 photos per listing (5 to 20 MB each), reorder, caption, set a cover, and see progress. Guests get the right size per device. Non-functional: uploads survive network ...
High-Level Design
- The client asks the Media API for an upload session, and the API returns a photo_id and pre-signed multipart URLs for an
originals/bucket. - The client uploads parts directly to object storage,...