← Dashboard

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:

ComponentRole in the reference architectureImplemented as
Event Logmessage bus with product, availability and tracking topicsVespa cluster; append-only documents with a producer-assigned sequence, consumers poll by cursor
Metadata Storethe product domain's transactional record: price, stock, sellerVespa cluster used as a key-value store, read by id
Signals Storefeature store: popularity, click-through, embedding per SKUVespa cluster used as a key-value store, batch-read per query
Search Indexthe search engine: text, filters, a copy of the vector and of popularityVespa cluster with the same first-phase score as the Unified side, no embedder, no second phase
Embedding Servicehosted model endpoint for query vectorsONNX model behind HTTP, outside Vespa
Search API, Catalog API, Event RouterorchestrationPython services
Search Intake, Ranking Intakestream processors keeping index and signals in syncPython 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

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