All Questions
Managing Long Running Tasks medium

To make a payment processing worker idempotent, you typically check:

  1. A The time of day.
  2. B A unique 'Idempotency Key' (or Transaction ID) in a database. If the key exists, you return the previous result instead of charging the card again.
  3. C The user's IP.
  4. D The queue name.

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

Get the app

Related questions