Sharding · Multiple choice

You shard a nearby-people index by location, grouping map cells into geoshards. How should the cells be grouped so no geoshard runs hot?

medium Data structures

Options

Why

Users are packed into cities, so equal areas put a whole city in one hot geoshard. Balancing by load splits a metro into small geoshards and lets a sparse region share one. Cells stay contiguous, so a search still reads only a few geoshards; random grouping would scatter every search over all of them.

Review this in your daily deck All cards in Sharding