All challenges
Code AnalysisHard 60s

Hot shard from a skewed key

A sharding layer uses this. Traffic is dominated by one huge tenant. What is the failure?
Starter code
def shard_for(tenant_id):
    return hash(tenant_id) % 8

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle