Skip to content

Feat/middleware idempotency deduplication 326#405

Merged
phertyameen merged 2 commits intoMindBlockLabs:mainfrom
mijinummi:feat/middleware-idempotency-deduplication-326
Mar 27, 2026
Merged

Feat/middleware idempotency deduplication 326#405
phertyameen merged 2 commits intoMindBlockLabs:mainfrom
mijinummi:feat/middleware-idempotency-deduplication-326

Conversation

@mijinummi
Copy link
Copy Markdown
Contributor

@mijinummi mijinummi commented Mar 27, 2026

🚀 #326 Request Deduplication Middleware for Idempotency

📌 Overview

This PR introduces a request deduplication middleware to enforce idempotency across critical operations. It prevents duplicate submissions, ensures safe retries, and guarantees consistent results for repeated requests.

This is particularly important for:

  • Puzzle submissions
  • Point claiming
  • Friend requests
  • Future payment operations

🎯 Key Features

🔑 Idempotency Key Support

  • Accepts client-provided X-Idempotency-Key header (UUID recommended)
  • Automatically generates keys when not provided:

Closes #326

@phertyameen phertyameen merged commit d49ce9e into MindBlockLabs:main Mar 27, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Request Deduplication Middleware for Idempotency

2 participants