Here is the retry algorithm, if you were down a day. They will trickle in vs a massive flood
(0..16).each do |count|
delay = (count**4) + 15
jitter = rand(0.5 * (count**4))
total_delay = delay + jitter
puts "Retry #{count}: #{total_delay} seconds"
end
Retry 0: 15.713002155688077 seconds
Retry 1: 16.48915648567112 seconds
Retry 2: 31 seconds
Retry 3: 124 seconds
Retry 4: 382 seconds
Retry 5: 938 seconds
Retry 6: 1319 seconds
Retry 7: 2617 seconds
Retry 8: 6006 seconds
Retry 9: 9468 seconds
Retry 10: 12612 seconds
Retry 11: 19804 seconds
Retry 12: 26167 seconds
Retry 13: 31795 seconds
Retry 14: 55286 seconds
Retry 15: 67782 seconds
Retry 16: 89823 seconds