Skip to content

[Feature] Add Idempotency to Emergency Request Creation #10

Open

Description

@getdownandcode

Problem

Creating an emergency request twice with same parameters creates duplicates (no idempotency key).

Impact

  • Accidental duplicate requests possible
  • System inconsistency
  • Billing/audit issues

Solution

Implement idempotency key tracking:

  • Accept Idempotency-Key header
  • Check existing request before creation
  • Return cached response if duplicate

Acceptance Criteria

  • Idempotency-Key header accepted
  • Duplicates detected and returned from cache
  • Request deduplication tested
  • 24-hour key expiration implemented

Related

Shared util: shared/utils/idempotency.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions