Bluebirdjs promises and exponential backoff…

I was adding an exponential backoff if an api returned a 500 or a 503 error. Bluebirdjs makes this super easy since it has a build in .delay.

Here is a stripped down example of an exponential backoff using request-promise and bluebirdjs.