Code AnalysisIntermediate 60s
Eventual consistency bug after write
async function updateName(id, name) {
await writeDb.primary.update(id, { name });
const user = await readDb.replica.get(id); // lagging replica
return user.name; // caller sees old value
}
What is the root cause of the stale read?
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.