← Questions

Render more than 100 million points on a map

0
GoogleSystem designLast asked Apr 2026

A system design interview question asked in Google's system design round, last asked Apr 2026. It tests frontend, maps and rendering.

For a frontend role: design an interactive web map that shows more than 100 million data points. At wide zoom levels it shows aggregated information such as a heat map; zoomed all the way in it shows individual pins. Panning and zooming must stay smooth, and new points arrive live.

Requirements

  • Functional: pan and zoom over the world; aggregated heat map or clusters at wide zoom; individual pins with details at the closest zoom; live updates as points are added or change; graceful behaviour when the live feed or detailed data is unavailable.
  • Non-functional: the browser can never download or render the whole dataset; every response is bounded by viewport, zoom level and a data version or time window; 60 frames per second while panning; fast first render on ordinary laptops and phones; controlled memory use.

Clarifying questions

  • How fresh must the map be: seconds, minutes?
  • Are points static, moving, or only appended?
  • How accurate must aggregates be at each zoom level?
  • What do users do with a pin: hover, click for details, select many?
  • Which devices and networks must we support?

What a strong answer covers

  • Make zoom a query dimension: the server keeps a spatial index and precomputed multi-resolution aggregates per tile (quadkeys or geohashes), so each request returns a bounded payload for one tile at one zoom.
  • Tiles as the unit of caching: stable cache keys of (layer, zoom, x, y, version) in a CDN and in the browser; prefetch neighbouring tiles.
  • The transition from heat map to pins without double counting or visible jumps: a zoom threshold, clustering, and cross-fading.
  • Rendering: WebGL for large point counts, canvas as a fallback, SVG or DOM only for a handful of interactive pins; why each choice wins at which scale.
  • Web workers to decode tiles and build vertex buffers off the main thread; transferable buffers; a memory budget with tile eviction.
  • Live updates over server-sent events as deltas per tile with a version number; the client applies deltas to loaded tiles and refetches when it falls behind.
  • Failure handling: show cached tiles and a stale indicator, retry with backoff, and degrade to aggregates if detail fails.
  • Metrics: frame rate, tile latency, cache hit rate, memory.

Follow-ups

  • Add historical playback: show the map at any past time.
  • Some points are visible only to certain users. What changes in tiling and caching?
  • A viral event puts a million new points into one city in an hour.
  • How would you test rendering performance before launch?

Where it's asked

  • Google · System design · Last asked Apr 202645 min · Whiteboard for the diagram, a doc for requirements and capacity math

What it tests

frontend · maps · rendering

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing