Insights

Two Warehouses, Ten Orders

Fulfillment looks like a series of small, obvious choices: each order should ship from whichever warehouse is cheapest. But warehouses have finite stock — and the moment a cheap option is scarce, the “obvious” local choice can quietly cost you.

At Amazon I was instrumental in the creation and deployment of Glocal Fulfillment Optimization (GFO) which was based on a simple premise: greedy order fulfillment is suboptimal!

Making it a reality at Amazon's scale required ingenuity, collaboration, and sharp attention to detail. The net result is a setup that verifiably saved $60 million per year in fulfillment costs in 2011, which is a far larger number today.

Key insights:

  • Start simple, and iterate - there were clear simpler problems we could address and solve first: single-item orders instead of multi-item orders for example. It's always worth it to start small and iterate.
  • Model it, don't ML it - various probabilistic techniques were attempted as well during the research process. What we found out quickly though is that this problem could be fully specified and modeled out. Too often folks are eager to "throw ML at it" which can be long-term suboptimal if you can model your situation out fully!
  • Strong collaboration across disciplines is the epitome of success - daily standups with engineering and a relentless focus on verification and validation resulted in a successful launch and immediate impact.

Here's an interactive way to understand the problem: we have 10 units of a toy spread across two warehouses, and orders coming in from across the country. LEX1 is a large, generally inexpensive warehouse, but SFO1 can capture savings for orders placed on the west coast. If you have to choose greedily when each order is placed, can you make the right decisions?

Play through it below, then compare your total against the optimal plan. Spend your two SFO1 shipments on the orders where they save you the most versus LEX1, and you'll match the optimizer.

Order 1 of 10 Spent so far: $0.00
Order placed to deliver to
Cost from LEX1: $0
Cost from SFO1: $0
LEX1 Inventory: 8
SFO1 Inventory: 2

Results

Your total cost
$0
Best possible
$0

#DestinationLEX1SFO1Your pickOptimal
โ† All Insights