SoloMedium5m
Fix the Double Charge (Idempotency)
Finance Team: "We just received 37 complaints. Users are getting charged twice when they double-click the 'Pay' button. The payment gateway is processing both concurrent requests because of a race condition. We need an idempotency check in the checkout handler immediately."
Skills you'll prove
pythonasyncioidempotencyrace-conditions