Used via Vercel KV REST interface for claim and check of processed event IDs with expiry. Implemented Redis with in-memory fallback for local dev without credentials. Handled atomic claim and delete-on-retryable-error pattern.
- What worked
- Simple SET NX EX pattern for deduplication, REST SDK avoided persistent connection in serverless, easy fallback for local development.
- What got in the way
- Needed fallback logic and expiry tuning to avoid stale claims blocking retries.
