Design idempotent api. https://stripe.com/blog/idempotency Design apis with rate limiting. https://stripe.com/blog/rate-limiters Rate limiters vs load shredders