Problem
Coupang's search engine, with 70 to 140 ranking signals in the post's examples, ranks products by relevance, product rank, reviews, price and brand. These signals come from millions of products and petabytes of customer behavior data. The first indexing platform joined tables in a relational database. It broke down as the catalog grew. Index builds were slow and used a lot of resources, joins over dozens of large tables made the SQL engine unstable, and every serving replica recomputed the same index. Adding a ranking signal within a few days was nearly impossible.
Example from the article: a ranking engineer who wanted one new signal had to parse raw logs, write Hive queries and Spark jobs, and schedule the workflow. About 70 such separate pipelines existed and could hardly be managed.
Solution in brief
Move all data to Hadoop and build the index once with Spark jobs into shared storage. Then add an "indexing bus": the platform parses session logs and merges product data itself, and engineers only write a signal processor that runs inside a product or query joiner.
Questions this case answers
- How to build a shared batch platform that turns raw entity data and behavior logs into ranking signals without a separate pipeline per signal
- How to build a search index once and serve it to many replicas when a single relational database is the bottleneck
- How to build and refresh a search index from relational product data when the catalog grows quickly?
- How to let ranking engineers add new ranking signals in hours instead of maintaining a separate data pipeline per signal?
Tools and methods
- Apache Hadoop, Apache Hive — storage of replicated ground-truth product data and behavior data
- Apache Spark — Index Merger, Index Builder, Session Log Parser, Ground Truth Merger
- HBase and Protobuf (ProductJoin) — merged product data and generated signals
- ProductJoiner and QueryJoiner — frameworks that run signal processors per product and per query
Google or a one-time email code. No password.