Prompt

Why am I getting duplicate requests after gateway retries?

Technology / API Platforms1 observationLast seen Oct 6, 2026

Latest observation

Oct 6, 2026OpenAI APIWeb search: off

Duplicate requests after gateway retries usually happen because the gateway is retrying a request that the upstream already partially processed, and the request is not idempotent or not safely deduplicated.

Common reasons:

  1. Timeouts are ambiguous

    • The gateway times out waiting for a response.
    • It retries.
    • The upstream may have actually completed the original request, but the response was lost or delayed.
    • Result: same operation runs twice.
  2. Retry policy on non-idempotent methods

    • Retries on POST, PATCH, or custom write endpoints can create duplicates.
    • GET is usually safe to retry, but write operations often are not unless designed for it.
  3. No idempotency key

    • If the client/gateway doesn’t send an idempotency token, the server can’t tell the retry is a duplicate.
    • Each attempt looks like a brand-new request.
  4. Retries happen at multiple layers

    • Client retries + gateway retries + service mesh retries can multiply requests.
    • Example: 3 retries at 2 layers can create many more actual calls than expected.
  5. Retrying on connection failures after the server received the request

    • A connection reset doesn’t mean the upstream never got the request body.
    • The gateway may retry because it didn’t get a clean response, but the server may already have executed the action.

How to fix it:

  • Use idempotency keys for write requests.
  • Limit retries to idempotent operations or safe failure modes.
  • Deduplicate on the server side using request IDs / transaction IDs.
  • Avoid retrying after partial transmission of a request body.
  • Tune timeouts so retries don’t fire too aggressively.
  • Ensure only one layer owns retries to prevent retry storms.

If you want, I can help you diagnose this for a specific gateway like Kong, NGINX, Envoy, AWS API Gateway, or Apigee.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.