/request-retry

Retrying requests proof of concept

Primary LanguageJavaScript

request-retry

I needed a simple way to retry requests from the request library at exponentially increasing intervals because a certain api fails in a predictable way.

How to use

1. Start the server

Run npm i

To track changes install nodemon: npm i -g nodemon

To run the server with nodemon: npm run server

To run the server without nodemon: node app.js

2. Run the test script

Make sure the server is running, then run node main.js

Note from author

I don't plan on finishing this, it's a proof of concept.