One of the joys of approaching the same problem multiple times is narrowing down on a number of solutions to specific problems which damn work. One of those are idempotency keys - the other are, undoubtedly, rate limiters based on the leaky bucket algorithm. That one algorithm truly blew my mind the first time Wander implemented it back at WeTransfer. Normally when people start out with rate limiting, a naive implementation would look like this: WebRequest.create!(at_time: Time.now) if WebReq...