All challenges
Code AnalysisHard 60s

Which Blast Radius Flaw

Review the tenancy pseudo-code. Which resilience pattern would most reduce tenant blast radius here?
Starter code
class WorkerPool:
    workers = [Worker() for _ in range(10)]
    def route(tenant):
        # every tenant hashed to a worker by tenant_id, 1:1
        return workers[hash(tenant.id) % len(workers)]
    # a single worker holds CPU-bound loop that can saturate

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