All challenges
Code AnalysisIntermediate 60s

Outbox relay skipped without ordering

What correctness risks arise?
Starter code
@transaction
def place_order(o):
    db.insert(o)
    db.insert(outbox, {payload: o})

def relay():
    rows = db.all(outbox)          # no ORDER BY
    for r in rows:
        bus.publish(r.payload)     # no version/sequence check
        db.delete(r)

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