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

What each level should show

The same question is judged differently for mid, senior and staff.

Expectations

The same question at four levels

  • Junior

    Must show

    • Stock by product and place
    • Receive, reserve, ship that work
    • Refuses negative counts

    Will be probed on

    • What if two orders come at once?

    Stands out

    Says on hand, held and available without help.

  • Mid

    Must show

    • Reservation as an object with picks
    • All or nothing
    • One lock around check and hold

    Will be probed on

    • Expiry
    • Where is the place chosen?

    Stands out

    Plans first and applies after, and says why there is no rollback.

  • Senior

    Must show

    • Invariants named and traced
    • Expiry on touch and by sweeper
    • Alerts outside the lock
    • Idempotent reserve

    Will be probed on

    • Lock order
    • Count below promises

    Stands out

    Puts numbers on the lock before splitting it.

  • Staff

    Must show

    • Moves the check into the database
    • Ledger, snapshot, repair
    • Knows what splitting breaks

    Will be probed on

    • Batches
    • Hot product
    • Planning outside the lock

    Stands out

    Says which rules belong to the business, and gives each a place in the code.