All challenges
Code AnalysisHard 60s

Fan-out-on-write celebrity

What breaks when a celebrity with 50M followers posts in this design?
Starter code
def post(user_id, content):
    save(content)
    for follower in get_followers(user_id):   # 50M
        push_to_timeline(follower, content)

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