All Questions
Api Gateway medium

How can an API Gateway help prevent 'Double Charging' in a payment system when a mobile client retries a failed request due to a poor connection?

  1. A By automatically blocking all POST requests that take longer than 500ms to process.
  2. B By enforcing a strict 'One Request Per Day' rule for every user.
  3. C By implementing an 'Idempotency Key' check: If the Gateway receives the same unique key it just successfully processed, it returns the cached result without calling the Payment Service again.
  4. D By using a special algorithm that detects duplicate clicks on a touch screen.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions