A three-line order could be sourced from either of two warehouses. How do you decide where it ships from, and what happens when one line falls through?
Answer
Short answer
Allocation is a cost minimisation over shipping, split-parcel cost and delivery promise, evaluated per line rather than per order; the design that survives is one where every line carries its own state, cancellation is a race against the pick face, and a shortfall is a normal outcome with a defined path.
Keep order management explicit in the answer because that is the concept the interviewer is actually trying to test. A good order management explanation names the trade-off, the failure mode, and the evidence you would use before choosing. Use order management once more at the decision point so the answer reads as judgement rather than a detached example.
Keep order management explicit in the answer because that is the concept the interviewer is actually trying to test. A good order management explanation names the trade-off, the failure mode, and the evidence you would use before choosing.
Was this answer helpful?
Likely follow-ups
- The cheapest split ships two parcels a day apart. How do you decide whether that is acceptable?
- A pick fails at the third warehouse in a row for the same line. What ends the loop?
- How would you support an order where one line is a pre-order with a date six weeks out?
- The customer cancels one line of five after two lines have shipped. Walk through the money.
Related questions
- A three-line order ships from two warehouses on different days. What does the customer see, and what does that do to your order model?hardAlso on order-management7 min
- A flash sale oversold three hundred units and the stock ledger never went negative. How is that possible, and where do you look first?hardAlso on allocation6 min
- Walk me through what happens between a customer order being captured and the service being live on the network.hardAlso on order-management5 min
- Why do low-latency systems preallocate arenas instead of calling the general-purpose allocator on the hot path?hardAlso on allocation7 min