Back to browse
ExactOnce – API for actions that can only happen once

ExactOnce – API for actions that can only happen once

by michaelnewman·Feb 26, 2026·1 point·0 comments

AI Analysis

●●●BangerBig BrainSolve My Problem

DynamoDB conditional writes solve race-free deduplication without distributed locks.

Strengths
  • Atomic exactly-once semantics via single DynamoDB conditional write—no locks or cross-service transactions
  • Deterministic failure codes (409, 410, 404, etc.) make client logic unambiguous and reliable
  • Batch CSV creation for campaigns; audit trail and optional PIN protection built-in
Weaknesses
  • Vendor lock-in to DynamoDB; no self-hosted option mentioned in preview
  • 409/410 semantics still require client-side retry logic understanding and handling
Target Audience

Backend engineers building payment systems, webhook handlers, idempotent APIs

Similar To

AWS Lambda reserved concurrency · Stripe Idempotency Keys · custom Redis-backed solutions

Post Description

I kept rebuilding the same pattern across products (idempotency keys, Redis TTLs, unique constraints) just to avoid duplicate side effects from retries and race conditions. Eventually I turned it into a focused API.

ExactOnce lets you create an action and consume it exactly once. The transition from active → consumed is enforced atomically via a DynamoDB conditional write. Under concurrency, one request succeeds; the rest deterministically get a typed 409 already_used. No distributed locks, no cross-service transactions.

Use cases:

+ magic login links + coupon redemption + webhook deduplication + one-time download links + ticket scanning + license activation

Try it without signing up:

curl --request POST https://api.exactonce.com/v1/demo

That returns a temporary action (5‑minute TTL) and a reveal URL. Open it once — it consumes. Open again — already used.

Docs: https://exactonce.com/api-docs How it works: https://exactonce.com/how-it-works

Private beta is free. Happy to answer questions about the DynamoDB implementation or the atomic consume pattern

Similar Projects

AI/ML●●●Banger

DashClaw – Intercept AI agent actions before they execute

Control before execution beats observability after—HITL with 10-min replay window.

Solve My ProblemBig BrainSlick
ucsandman
113mo ago