All challenges
Code AnalysisHard 60s

Dual-write inconsistency

async function placeOrder(o) { await db.save(o); await bus.publish(new OrderPlaced(o.id)); // separate call } // Process crashes between the two lines. What is the resulting inconsistency and the standard fix?

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