Parallel effects

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

阅读约 1 分钟更新于 2026年10月2日florianamette1 位贡献者
在你的助手中提问(MCP)在 GitHub 上编辑

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