FlowDSL Node Catalog
Idempotency Key
Ensure a request is processed at most once. Routes new/duplicate.
Overview
| Property | Value |
|---|---|
| Node ID | core/idempotency-key |
| Kind | router |
| Module | core-flowdsl |
| Repo | go-flowdsl |
| Handler | github.com/redelay/go-flowdsl/nodes/core.IdempotencyKey |
| Icon | lucide:fingerprint |
| Color | #84cc16 |
| Tags | idempotency, redis, safety |
Description
Stores the request's idempotency key in the app-supplied KVStore
(ctx value core.KVStoreKey). If SETNX succeeds → emits on new.
If the key already exists → emits on duplicate (the prior result
is copied back if available).
Outputs
new— (no description)duplicate— (no description)
Settings
| Property | Type | Required | Default | UI Group | Description |
|---|---|---|---|---|---|
keyPath | string | yes | — | Key | |
namespace | string | — | idem | Key | |
ttl | string | — | 24h | TTL |
Example
yaml
# Use this node in a flow:
nodes:
- id: my_step
name: My Step
kind: router
action_ref: core/idempotency-key
config:
keyPath: some.packet.path
namespace: idem
ttl: 24h