Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Vinted Engineering 6 min read Case study hardMaster

Teaching the Old Dog a New Trick

Vinted moved per-user ranking cross-features from Redis into Vespa, then hit p99+ latency spikes above 100 ms after feeding bursts (500M+ updates/hour across 50+ schemas) because data redistribution broke the second-phase document summary fetch (.fill()), causing retries across content nodes. The fix encodes all needed fields as match-features, turning strings into mapped tensors via tensorFromLabels, and selects only matchfeatures. A Vespa contribution (8.596.7) then lets the query skip summary fetching entirely, removing a network round-trip. p99 dropped from ~9 ms to ~3 ms with no spikes during redistribution, and mean latency is ~430 µs at 7.5k RPS per container node.

Related posts

  • The search for speed in Figma

    Figma mediumAdept

    Figma's search slowness traced mostly to its own stack, not OpenSearch: OpenSearch's headline 8 ms metric was per-shard time, and only the "took" field in responses reveals overall query latency, which accounted for under 30% of API time. Fixes included reordering and slimming Ruby permission checks, repairing a database connection setup bug that also sped up the rest of Figma, and trimming index size by 50% and then 90% so the data fit in the OS page cache. Load tests with a custom Go benchmark showed AWS sizing guidance suited log workloads, not latency-sensitive search. Cutting shards from 450 to 180 and moving to nodes with less CPU and more RAM paid off, while concurrent segment search hurt. Overall API latency fell about 60%, peak QPS rose over 50%, and cost dropped more than 50%.

  • How Vinted Serves Personalised Search Autocomplete

    Vinted Engineering mediumAdept

    Vinted's autocomplete service runs on Vespa and serves 4,700 queries per second at 31 ms P99 over a pool of 125 million suggestions across 50+ country-language markets. More than 20% of search sessions now start from a suggestion, up from under 8%. Candidates come from product metadata combinations and search logs, scored twice a week by a heuristic built on Most Popular Completion. Switching from Vespa's native prefix queries to index-time edge-ngrams via Lucene Linguistics cut P99 matching latency from ~220 ms to ~25 ms, at the cost of more memory. A multiplexer token filter gives accent tolerance while preserving accent intent, a cascade of exact, edit-distance-1 and edit-distance-2 fuzzy tiers handles typos and supplies match-strength signal, and a LightGBM LambdaRank model with 63 features re-ranks results per keystroke for personalisation.

  • How we selected the next vector database at Booking.com

    Booking.com Data Science mediumAdept

    Booking.com replaced its OpenSearch-backed internal Embedding Service with Weaviate after running its own production-shaped benchmark instead of trusting public comparisons. The evaluation used 100M all-MiniLM-L6-v2 embeddings built from Amazon Reviews 2023, with full and filtered approximate KNN plus a mixed workload including 20% writes, at 5 to 100 concurrent clients. Every system was tuned to about 0.99 recall and compared mainly on P99 latency. Dedicated vector databases gave lower tail latency and better scaling under concurrency, with roughly 40% lower compute and memory cost. Because clients already reached storage only through an internal service, most teams migrated with just a configuration change.

  • Cutting Threads’ send latency in half

    Meta Engineering mediumAdept

    Instagram's Threads messaging app cut media send latency in half, partly by fixing a "configure" endpoint that ran four times slower in one region. The endpoint was IO-bound on a read-optimized write-through cache whose backing store lived in another region, so every write paid a cross-region round trip. Routing the whole web request to the region hosting the backing store batched those round trips. A client-side A/B flag, sent as an HTTP header and matched by a routing rule, showed about a 29% send latency improvement.

  • What really matters for performance: lessons from a year of benchmarks

    ClickHouse easyNovice

    Six ClickHouse benchmarks from 2025 point to one conclusion: performance depends on how efficiently an engine moves data end-to-end. JSONBench showed columnar JSON storage running orders of magnitude faster than document stores like MongoDB on up to 1B Bluesky events. FastFormats found the Native format, LZ4 compression and large batches matter most for ingestion, and Netflix used those results to reach ~5 PB/day of log ingestion. A distributed cache matched or beat local SSDs on object storage, lightweight SQL UPDATEs ran up to 1,000× faster than mutations, and parallel replicas aggregated 100B rows in ~0.4s.

The quest for software engineering knowledge.

Look:
Layout: