Skip to content

IdempotencyKeyFactory

IdempotencyKeyFactory = (context) => string | undefined

Defined in: packages/pipeline-idempotency/src/interfaces/idempotency-options.interface.ts:30

Derives the idempotency key for a request from the pipeline context. A common HTTP pattern is to copy the Idempotency-Key header into the CQRS command at the controller boundary and read it from context.request. An upstream behavior may alternatively place application metadata in context.items. Return undefined to skip deduplication for this request.

IPipelineContext

string | undefined