AlgoViz

Design an inventory management system

medium 80 min

Count goods in several places, promise them to orders without ever promising too much, ship or let go, and explain every count.

Watch lesson4:28

Where it shows up

The same pattern appears across everyday software.

  • Shopify inventory states

    Its developer guide describes `on_hand` as the sum of `available`, `committed`, `reserved`, `damaged`, `safety_stock` and `quality_control`. An order lowers available and raises committed; fulfilment lowers committed. `incoming` goods are counted apart.

  • Adobe Commerce reservations

    Reservations hold amounts until orders ship or cancel, instead of changing product quantities at once. A source selection algorithm recommends which places should send, and the out-of-stock threshold is taken off the salable quantity.

  • WooCommerce hold stock

    The setting Hold stock (minutes) keeps products for unpaid orders. At the limit the pending order is cancelled and the stock goes back. A low stock threshold sends a notification.

  • Odoo removal strategies

    FIFO, LIFO, FEFO, closest location and least packages are choices for which pieces leave first: a pick policy as configuration. FEFO works on lots with expiration dates.

  • Saleor allocation strategy

    Each channel chooses how lines are given to warehouses. One option follows the sorting order of warehouses and goes on to the next one when stock is not enough.

  • Saleor stock reservation

    Checkouts can reserve stock for a number of minutes, set apart for signed-in and anonymous users. When it expires, others may take the pieces. The stock API shows quantity, allocated and reserved.

  • Medusa inventory module

    An inventory level has `stocked_quantity`, `reserved_quantity` and `incoming_quantity` for each location. Reserved pieces are still in stock but do not count as available.

  • Square Inventory API

    Changes are recorded as adjustments between states, such as from `IN_STOCK` to `SOLD`, and it supports receiving, marking waste and reconciliation.