Stock projection / 43.36s

Sold-out products leave the search results.

A warehouse update marks a product as sold out, and it disappears from search. It returns when new stock is received.

About this film · test data

Recorded in July 2026 in the development environment using test data. The film preserves the interface and narration from that time; the linked guide explains the implementation and later changes. AI tools helped prepare this material.

Silent film with burned-in narrationOpen WebM directly

What to notice

  1. Start sellableThe Astra wireless headset appears with six available units.
  2. Warehouse write-offStock records the reduction and the product leaves normal storefront search.
  3. Goods receiptA goods receipt adds twelve units in Stock.
  4. Discovery returnsThe same product reappears after the updated availability reaches Catalog search.

Why it matters

Search follows stock updates so customers can find products that are available to buy.

The visibility path may be asynchronous, but it never grants inventory. Checkout still asks Stock for the authoritative reservation.

Behind the scenes

Stock changeSave the full availability update
⇢
Kafka eventEvent keyed by stock aggregate
⇢
Catalog projectionAvailability + durable index work
⇢
Search visibilityElasticsearch document updated
Search updates arrive asynchronously. Checkout still asks Stock to reserve the quantity.

What this film shows

On screen

A warehouse write-off removes the product from search and a receipt restores it.

Not claimed

Search still keeps a product visible while a variant has unknown stock. It hides the product when every Catalog variant is projected out of stock. Recommendation uses stricter eligibility checks. The film does not exercise all these rules.

Read the Stock-driven search design.

How we test changesRead about testing and deployment