Parallel effects

Concurrency and integration handoff in workflows: races, double spend, replayed callbacks, and idempotency misuse.

1 min irakurtzekoeguneratua: 2026 urr. 2(a)florianamette1 laguntzaile
Galdetu zure laguntzaileari (MCP)Editatu GitHub-en

Parallel effects cover what happens when two or more requests touch the same workflow state, or when asynchronous callbacks arrive out of order. They sit beside sequencing (order of user-facing steps) and state alignment (what each layer believes).

Concurrency#

PageFocus
TOCTOU in workflowsCheck-then-act gaps across requests
Double spendSpending the same balance, coupon, or credit twice
Parallel requestsIntentional request fan-out against weak locks

Integration handoff#

PageFocus
Webhook replayDuplicate delivery of signed or unsigned callbacks
Out-of-order callbackPayment or provisioning events applied in wrong order
Idempotency key misuseKeys ignored, scoped wrong, or reset on retry