All challenges
Code AnalysisIntermediate 60s

TTL jitter to prevent avalanche

Every cached entry in the fleet is warmed at midnight with `ttl = 3600`. At 01:00 the DB CPU spikes because most keys expire together. Best fix?
Starter code
for k in warm_keys:
    cache.set(k, compute(k), ttl=3600)

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