Avoiding race conditions in flow
A race condition is when multiple transactions are happening at more or less the same time, and they conflict.
Let’s say both transaction A and B look to see if a record exists. If it doesn’t, they create it. Now if A and B happen virtually simultaneously, they both create records and therefore cause duplicates.… Read the rest