Use @vercel/kv to persist nonces as new NonceManagerSource #2802
Unanswered
amilcarrey
asked this question in
Idea / Feature Request
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi team,
I’ve implemented a solution for managing nonces while running tasks in parallel. To ensure robustness and avoid transaction failures due to memory loss (e.g., during downtime), I’ve decided to persist the nonces in Redis.
This allows us to recover nonces and prevent failures caused by missing or reset state.
I’ve written a simple NonceManagerSource to handle this, and here’s a snippet of the implementation. If everyone is on board with this approach, I’ll proceed with the full PR.
Let me know your thoughts!
Code:
Beta Was this translation helpful? Give feedback.
All reactions