#38EasyLocation, Geospatial & Ride-Hailing

Build a Marketplace Feature for Facebook

ASKED IN INTERVIEWS AT:MetaRoblox

EXECUTIVE SUMMARY & PROBLEM STATEMENT

Design a local peer-to-peer buy/sell marketplace with geospatial item discovery, category hierarchies, buyer-seller chat, and fraud detection.

SCALE ESTIMATION & TRAFFIC ENVELOPE

DAILY ACTIVE USERS / TPS100 Million daily active marketplace shoppers
READ / WRITE TRAFFIC RATIO50:1 read to write
5-YEAR STORAGE CAPACITYSearch index in Elasticsearch/OpenSearch with GeoPoints

FUNCTIONAL REQUIREMENTS

  • [1]List item with photos, description, price, and location
  • [2]Search items within X miles with category and price filters
  • [3]In-app messaging between buyer and seller

NON-FUNCTIONAL REQUIREMENTS

  • •Fast search responses (<100ms)
  • •Immediate image moderation against prohibited items
  • •Scalable to hundreds of millions of active listings

CORE ARCHITECTURAL COMPONENTS

Listing Management API
Elasticsearch Spatial Index
Computer Vision Moderation Queue
Messenger Integration Bridge
Object Store (Images)

DATA SCHEMA & PERSISTENCE

Listings: item_id, seller_id, title, price, category_id, location_point, status

DISTRIBUTED TRADE-OFFS & FAILURE MODES

  • ⟡Combining location radius queries with faceted category filters in OpenSearch provides sub-50ms search with full-text fuzzy matching.