r/chalkinterview • • 1d ago

Library question Amazon system design question: Live inventory across distribution centers

Keep the latest stock per item per warehouse, from a firehose of updates.

Design a service that receives inventory updates from distribution centers and lets shopping and fulfilment systems ask how many of an item a location has right now.

Scale: Thousands of locations, millions of items, tens of thousands of updates per second; history kept for analytics.

Source: reported by a candidate in a public write-up. The wording above is ours.

Practise it out loud with follow-ups: https://chalkinterview.com/questions/amazon-live-inventory-across-distribution-centers/?utm_source=reddit&utm_campaign=sub

How would you answer it? Drop your approach below.

1 Upvotes

1 comment sorted by

1

u/nian2326076 16h ago

For the system design question on live inventory across distribution centers, consider using a distributed database that can handle high write and read loads to maintain real-time stock updates. Implement a pub/sub model for updates so that each distribution center publishes changes, and all services subscribing to this information get real-time data.

For interview practice on system design questions like this, you can use PracHub to find similar scenarios and discuss your approach aloud. This can help you refine your thought process and articulate your solutions effectively. Additionally, LandOffer can assist in discovering relevant job opportunities in systems design, should you be considering a career move in this area.