The tables market-orders (partition key customer, sort key placed) and market-carts already exist. ~/catalogue.json is a batch of the eight monsters, keyed by id. A supplier sent two items in ~/supplier/, one of them a monster the market already has.
- Create the on-demand table
market-monsters, keyed by the stringid, and load the catalogue into it. - Mossback (
m-002) now costs 50. - Put both supplier items into the table so that a monster that exists is never overwritten. One of them should be refused.
- Add a global secondary index
by-typewithtypeas its partition key andpriceas its sort key. Once it is active, save the fire monsters, cheapest first, to~/fire.json. - How many orders did
adaplace in October 2026? Read only her October orders to find out. - Carts must expire on their own: turn on TTL for
market-cartson the attributeexpires_at.