KatInterview

E-commerce Catalog Update System with Asynchronous Image Processing

System DesignModel answer
HardModel answerSystem Designdistributed-systemsasync-processingconcurrency

Last updated

Design a scalable system for merchants to update product catalogs individually or in bulk, with image validation and CDN delivery.

Problem Statement

You're building a platform where online retailers manage their product inventories. Sellers need to modify product information through two channels: immediate edits to individual items and batch file uploads containing thousands of records. When sellers provide image links, the system must fetch, validate, transform, and distribute these assets.

What You Need to Design

Core Capabilities:

  1. Individual modifications: Allow targeted changes to specific product fields (pricing, inventory levels, descriptions).
  2. Batch operations: Process uploaded files (CSV or JSON format). When some records fail while others succeed, generate detailed failure reports showing exactly what went wrong.
  3. Asset handling: Download images from provided URLs, verify their validity, create multiple size variants, and store them for fast global access.
  4. Progress visibility: Let sellers query the current state of their batch operations.

Quality Attributes:

  1. Handle traffic surges: The system experiences 10x load increases during holiday shopping periods.
  2. Data accuracy: Product information displayed in search results and recommendation feeds must stay synchronized.
  3. Fault tolerance: Network issues when downloading images should trigger automatic retries rather than permanent failures.

Your Deliverable

Produce a technical design covering:

  • Service interfaces: What endpoints do sellers call? What request/response formats?
  • Storage schema: How do you organize product records and track batch job progress?
  • Execution flow: Walk through the journey from receiving an upload to reflecting changes in the live catalog.
  • Conflict resolution: What happens when two updates target the same product simultaneously?

Consider discussing trade-offs between consistency and availability, how you'd monitor system health, and what capacity planning looks like.

Hints

Hint 1

Think about separating fast metadata updates from slower image processing—can they proceed independently?

Hint 2

For large file uploads, consider whether your API servers should handle the data directly or delegate to specialized storage.

Hint 3

When multiple updates race to modify the same product, per-field versioning can preserve more work than whole-record versioning.