Case Study

Uber Go Geo-index System

Illustrative reference design for the Go, geohash, Redis stack: component roles, highlights and trade-offs. No production metrics claimed.

  • Go
  • geohash
  • Redis
  • cassandra

Illustrative walkthrough. This page is a reference design built around the stack listed above. It is not an audit of the named project’s production system, and it makes no measured performance claims. The referenced repository (https://github.com/uber/h3) is the source of truth for the real implementation.

Component roles

  • Go — Primary service implementation; keep request paths explicit and avoid hidden goroutine lifetimes.
  • geohash — Supporting component; write down its contract with the rest of the system before wiring it in.
  • Redis — Low-latency cache and coordination; TTL and eviction policy are explicit.
  • cassandra — Wide-column store for write-heavy access patterns; model tables around queries.

Design highlights

  • Geospatial indexing
  • In-memory LRU cache
  • A latency budget treated as an explicit design constraint

Trade-offs to check before adopting

  • Schema changes ship with the code, so every migration needs a rollback path.
  • Caching buys latency and adds an invalidation contract that must be maintained.

Where to look next

  • Repository: https://github.com/uber/h3
  • The related runnable examples below show the individual pieces this walkthrough composes.

Repository

View on GitHub ↗