Design an Asynchronous Report Generation Queue for Seller Central
Last updated: November 29, 2026
Quick Overview
Design the system that lets sellers request large reports (orders, inventory, settlements) in Seller Central, generates them in the background, and notifies them when the file is ready to download.
Amazon
November 29, 20260
0
0 solved
Design the system that lets sellers request large reports (orders, inventory, settlements) in Seller Central, generates them in the background, and notifies them when the file is ready to download.
A straightforward job-queue design used in Amazon screens. The interviewer checks the request-poll-download pattern, fair sharing of workers between big and small sellers, deduplication of identical requests, and safe delivery of files.
What the Interviewer Expects
- Use an async request with a report id and status polling
- Queue jobs and process them with a worker fleet
- Prevent one seller from monopolizing workers
- Store outputs in S3 with expiring presigned URLs
- Retry failures and expose clear statuses
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 identical report requests made a minute apart?
- How do you support scheduled daily reports?
- What if a report takes four hours for the largest sellers?
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: request a report type and date range; see status (queued, in progress, done, failed); download CSV when done; email or in-app notification. Non-functional: millions of sellers, hundreds of...
High-Level Design
The Reports API writes a job row (report_id, seller_id, type, params, status) and enqueues a message. Worker fleets per report type pull jobs, run queries against the analytical replica or data lake...