Catalogue / tinder-2019-geosharded-search

Tinder splits its single Elasticsearch recommendations index into geoshards built from S2 cells, gaining 20 times the compute capacity

Tinder, 2019. Search index behind real-time recommendations.

Organisation
Tinder
Evidence
Reported from production
Source
Geosharded Recommendations Part 1: Sharding Approach

Tinder Tech Blog (Medium), published 2019-05-14

Records

Decision#d1

Partition the recommendations search index by geography, since every query is bounded to 100 miles

Decision#d2

Build balanced geoshards by walking S2 cells along the Hilbert curve and choosing the split with the lowest load deviation

Decision#d3

Size geoshards so a query fans out to few of them, with load tests favouring 40 to 100 worldwide and room to avoid resharding for years

Sign in to read what was chosen, what was rejected and what it cost, each with its place in the source. An account is free. The job-queue cards are open without one.