@lucid-softworks/queue-dedupe
v0.1.0
Published
Stable queue idempotency keys and active-deduplication semantics.
Maintainers
Readme
@lucid-softworks/queue-dedupe
Stable content-based queue idempotency keys and active-job semantics.
import { createQueueDeduplicationKey } from "@lucid-softworks/queue-dedupe";
const key = createQueueDeduplicationKey("invoice", { accountId: 42 });
await client.enqueue("invoice", data, { deduplicationKey: key });Object key order does not affect the generated key. Waiting, scheduled, and active jobs reserve their key; terminal jobs do not.
