Unified vs Assembled
Two storefronts serve the same 3.17 million products to the same scripted shoppers. One is a single Vespa application. The other is the same engine cut into the components a large retailer's search stack usually has. This is what the split costs, measured live.
Why the same engine on both sides
Comparisons between retrieval systems usually compare products, and every product has a story about why its numbers are better. This demo removes the product from the comparison. Both sides store, index, rank and update with Vespa, on identically sized clusters, with the same embedding model and the same ranking arithmetic. The only variable is the architecture: how many pieces the path from a shopper's query to a result is cut into, and how many pieces a change to a product has to travel through before a shopper can see it.
That makes the result a statement about architecture, not about one vendor beating another. Whatever theAssembled side pays, it pays because of the shape of the stack, since the boxes inside it are as fast as the box on the Unified side.
The two sides
Unified
One application. A product is one document carrying its title, its category, its price and stock, its behavioural signals (popularity, click-through) and its embedding, which Vespa computes in-container from the title at feed time. A search is one request: text and vector retrieval, filters, a multi-phase ranking blend of text score, vector closeness, popularity, rating and availability, all executed where the data lives. A price change, a purchase or a click is one partial update to one attribute, visible to the next query on acknowledgement.
Assembled
The reference architecture is what search looks like at many large retailers: a search index fed by an intake pipeline, a feature store of ranking signals fed by a second pipeline, a transactional store that owns prices and availability, an event bus connecting the domains to the pipelines, a hosted model endpoint for query embeddings, and an orchestrating search API behind a catalog API. Here each stateful component is a Vespa cluster confined to that one role:
| Component | Role in the reference architecture | Implemented as |
|---|---|---|
| Event Log | message bus with product, availability and tracking topics | Vespa cluster; append-only documents with a producer-assigned sequence, consumers poll by cursor |
| Metadata Store | the product domain's transactional record: price, stock, seller | Vespa cluster used as a key-value store, read by id |
| Signals Store | feature store: popularity, click-through, embedding per SKU | Vespa cluster used as a key-value store, batch-read per query |
| Search Index | the search engine: text, filters, a copy of the vector and of popularity | Vespa cluster with the same first-phase score as the Unified side, no embedder, no second phase |
| Embedding Service | hosted model endpoint for query vectors | ONNX model behind HTTP, outside Vespa |
| Search API, Catalog API, Event Router | orchestration | Python services |
| Search Intake, Ranking Intake | stream processors keeping index and signals in sync | Python workers consuming the Event Log |
A search on this side is a chain: the Search API asks the Embedding Service for a vector, retrieves 200 candidates from the Search Index with the same first-phase score the Unified side uses (attribute fields only, served from memory), fetches fresh signals for those 200 from the Signals Store, reranks in-process with the same blend the Unified side runs inside the engine, and fetches the tiles for the few hits it shows. A price or stock change is a pipeline: the Event Router commits it to the Metadata Store and appends an event; Search Intake polls the log, reads the record and the signals concurrently, and applies the changed fields to the Search Index document as a partial update, retrying on failure. Clicks go to the Signals Store through Ranking Intake; the Search API reads them from there per query, so a click never rewrites an index document.
Both sides run the same corpus, the same embedding model (the Assembled side computes it once, in the feeder, with the same ONNX model the Embedding Service uses; the vectors agree to floating-point precision), the same ranking arithmetic, and identically sized Vespa Cloud nodes. The Python services and the dashboard run on one machine in the same cloud region as the clusters.
What the shoppers do
Shoppers are closed-loop agents: each runs one task after another against one side, thinking for a moment between steps. A task is search, click a result, sometimes refine by the clicked result's category and click again, open the product, add to cart, and buy with probability 0.6. Queries come from a pool of real shopping queries. Each agent is started twice with the same seed, once per side, so both storefronts receive the same stream of tasks and each side's throughput, latency and failures are its own. A shopper never tries to buy an item the grid already shows as sold out, so a refused purchase means the storefront said "in stock" and checkout said no.
Meanwhile a merchant changes the price or stock of products that shoppers have recently seen, on both sides at the same instant, and restocks items shoppers have seen run low. After each change a probe watches each side's search-facing view of that product until it reflects the change. Probe traffic is not counted in any latency.
The simulation drives itself. Nobody starts or stops it: the shopper count wanders between 5 and 20 per side and the merchant's cadence between one change every half second and one every five seconds, both re-chosen every 15 to 45 seconds; a flash sale of a few hundred changes lands every few minutes. Everything on the dashboard is recorded once per second, and this article is written from those recordings.
What we measure
- Search latency p50, p95, p99 at the storefront API, and hops per request.
- Task throughput: completed shopping tasks per second per side, under the same number of shoppers (failed tasks are not counted).
- Change to searchable: milliseconds from a merchant change until the search-facing document reaches the version that change produced. Each side's probe starts when that side's own write is acknowledged. A probe that has not seen the change after 90 s is counted as a timeout, not recorded as a 90 s measurement. During a flash sale one change in ten is probed.
- Ranking-signal lag: how long a click takes to move the popularity value the ranker reads: the document itself on Unified, the Signals Store on Assembled. The baseline is read at click time from that same store.
- Stale results: results whose price or in-stock state disagrees with what the simulator knows to be true for that product on that side, judged as of the moment the search was sent. Stock is seeded per side from the authoritative product page and updated by that side's own purchases.
- Refused as sold out: a purchase refused for an item the grid showed in stock while the store already knew it was gone. A refusal for an item that sold out after the shopper saw it is a race and is counted separately; infrastructure errors are errors, not refusals.
- Degraded searches: searches in which any hop's Vespa coverage report showed a timeout or partial result.
- Intake backlog: how far behind the Assembled side's pipelines are, in events.
Results
Numbers from the live deployment will be published here once a clean recording on the current build is available. Until then, the dashboard itself is the evidence: it runs continuously, and every figure on it is measured the way this article describes.
What is fair here, and what is not
- The Assembled side is built competently: batched signal fetches, attribute-only candidate fetches with tiles hydrated for the shown hits only, partial updates instead of document rewrites, concurrent store reads, retries with backoff, an ordered partitioned log, HTTP/2 connection pools, soft timeouts. It is not a straw man; it is the shape.
- The Unified side does have advantages that are not about hop count: ranking runs where the data is, and every signal it ranks with is the document itself. Those are architectural properties too; they are the point.
- The two search paths are the same end to end: same query, same retrieval (text or nearest-neighbour), same first-phase score with BM25 statistics pinned on both indexes, same 200-candidate window, same rerank blend, same filters. On identical candidates the Assembled side's Python rerank reproduces the Unified side's global phase exactly. A query-understanding component was tried and removed because it changed results rather than only adding a hop.
- What does drift is behavioural state: each side's popularity moves with its own shoppers' clicks and purchases, so after a while the same query can order the same ten products slightly differently. That is not a ranking difference; it is two stores that have lived their own histories, which is what any real deployment looks like.
- Everything runs in one cloud region, and the two search clusters (container and content nodes) are identically sized. Numbers measured from a laptop across an ocean multiply every hop by the ocean and are not the ones cited here.
- The dashboard's probes and intake statistics are excluded from storefront latencies.