Skip to main content
Manusで任意のスキルを実行
ワンクリックで

concurrency-and-idempotency

スター0
フォーク0
更新日2026年5月1日 22:04

Use when a webhook handler can be retried by the upstream; when a queue or message-bus consumer might receive the same message twice; when two concurrent requests can both pass a uniqueness check before either inserts; when a cron job runs on multiple instances; when Stripe-style idempotency keys are being designed; when code does check-then-act on shared state; when an ORM update lacks an optimistic version column and is racing; when retry/backoff is being added to a non-idempotent operation; when a counter is being updated as `count = appComputedValue` instead of `count = count + 1`; when distributed locks (Redis SETNX, Zookeeper, etcd) are being used for correctness; when "exactly-once" delivery is being assumed from a broker; when an outbox or saga is being designed.

インストール

Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。

SKILL.md
readonly