Parallel effects

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

1 წთ კითხვაგანახლდა 2 ოქტ. 2026florianamette1 ავტორი
ჰკითხეთ ასისტენტს (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