Starting a Global SaaS Inventory System: First Steps and Product Thumbnail Storage
Quick Overview
A system design scenario about starting a global SaaS inventory management system: what to do before any design, which requirements to clarify and how to store product thumbnail images. It tests requirement gathering, early risk reduction and object storage with CDN delivery.
Starting a Global SaaS Inventory System: First Steps and Product Thumbnail Storage
Company: Amazon
Role: Software Engineer
Category: System Design
Difficulty: hard
Interview Round: Technical Screen
Your team is starting a new inventory management system, sold as a global SaaS product: business customers use it to track stock of their products across warehouses. Two questions come up at the very start of the project. What do you do first? And how do you store product thumbnail images?
### Clarifying Questions
- Is a product manager available to answer requirement questions before design begins?
- Who uploads product images, in what formats and sizes, and how many images does a product have?
- Who views the thumbnails: only each customer's staff, or also the public?
### Part 1: The first step
Before any design or code, what do you do first? Describe the sequence that takes the project from that first step to development, the questions you need answered, and how each answer would change the design.
```hint Find the answers that change the design
List the unknowns whose answers would change the data model or the consistency model, for example how stock changes arrive and who can change the same item at once.
```
#### What This Part Should Cover
- The inventory-specific requirements to clarify and why each one matters.
- A path from requirements to architecture that removes the riskiest unknowns early.
- Who takes part at each step and what each step decides.
### Part 2: Product thumbnails
Products have thumbnail images shown in the app. Where do you store the image files, and what goes into the database?
```hint Different data, different store
Compare what a database is good at with what serving many small images to users around the world requires.
```
#### What This Part Should Cover
- Where the image bytes live and which metadata the database keeps.
- Fast delivery worldwide and caching.
- Upload, resizing and access control.
### What a Strong Answer Covers
- Requirement questions specific to inventory: concurrent updates, overselling, sync, history and integrations.
- Early risk reduction with a proof of concept and an architecture review before development.
- A storage and delivery design for images that keeps the database small.
- Multi-tenant and multi-region concerns of a global SaaS.
### Follow-up Questions
- Two sales channels sell the last unit of a product at the same moment. How do you prevent overselling?
- A customer needs a full history of every stock change for audits. How does that change the data model?
- How do you keep one customer's images private while still serving them through a CDN?
- Customers in several regions update the same stock records. Where do those records live?
Overview: A system design scenario about starting a global SaaS inventory management system: what to do before any design, which requirements to clarify and how to store product thumbnail images. It tests requirement gathering, early risk reduction and object storage with CDN delivery.
Your team is starting a new inventory management system, sold as a global SaaS product: business customers use it to track stock of their products across warehouses. Two questions come up at the very start of the project. What do you do first? And how do you store product thumbnail images?
Clarifying Questions Guidance
Is a product manager available to answer requirement questions before design begins?
Who uploads product images, in what formats and sizes, and how many images does a product have?
Who views the thumbnails: only each customer's staff, or also the public?
Part 1: The first step
Before any design or code, what do you do first? Describe the sequence that takes the project from that first step to development, the questions you need answered, and how each answer would change the design.
What This Part Should Cover Guidance
The inventory-specific requirements to clarify and why each one matters.
A path from requirements to architecture that removes the riskiest unknowns early.
Who takes part at each step and what each step decides.
Part 2: Product thumbnails
Products have thumbnail images shown in the app. Where do you store the image files, and what goes into the database?
What This Part Should Cover Guidance
Where the image bytes live and which metadata the database keeps.
Fast delivery worldwide and caching.
Upload, resizing and access control.
What a Strong Answer Covers Guidance
Requirement questions specific to inventory: concurrent updates, overselling, sync, history and integrations.
Early risk reduction with a proof of concept and an architecture review before development.
A storage and delivery design for images that keeps the database small.
Multi-tenant and multi-region concerns of a global SaaS.
Follow-up Questions Guidance
Two sales channels sell the last unit of a product at the same moment. How do you prevent overselling?
A customer needs a full history of every stock change for audits. How does that change the data model?
How do you keep one customer's images private while still serving them through a CDN?
Customers in several regions update the same stock records. Where do those records live?