Automation glossary

Race Condition

A race condition occurs when two processes act on the same data at nearly the same time and the result depends on which finishes first.

In plain language

Two automations update the same record at once, and one silently overwrites the other’s change.

Example

Two webhooks for the same customer arrive together, both find no existing contact, and both create one.

Deduplication · Idempotency · Queue · Record

Common misconception

Race conditions are not rare in automation; webhooks and parallel runs make simultaneous updates common.

Implementation guidance

Process events for the same record one at a time, use unique keys or upserts, re-read data before writing, and add locks or queues where order matters.

Primary references

← Browse every glossary term