All Questions
Redis medium

How does Redis implement Geospatial commands (e.g., `GEOADD`, `GEODIST`) using its existing architectural components?

  1. A It implements a custom high-performance Quadtree engine that runs on a dedicated background thread.
  2. B It leverages an R-Tree index that is physically stored inside the global string-based keyspace segment.
  3. C It encodes coordinates into a 'Geohash' integer stored in a standard Sorted Set (ZSET).
  4. D It makes external API calls to geospatial cloud providers to calculate distances between user keys.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions