Inventory lookup in the checkout service

Code reviewMedium15 minShopify and Amazon style

Your task

Before reserving stock, checkout asks the inventory service about each item in the cart. Inventory normally answers in about 30 ms, and checkout, on Node 20, handles about 200 orders a second at peak.

What do you flag before this ships?