server-ready
server-ready copied to clipboard
consider an exponential backoff instead of a static retry?
this seems like a pretty good one: https://github.com/segmentio/backo
Thanks for the link :) Didn't know about this project and exponential backoff.
However for my usage, I'm not sure how it would benefit. I'm spawning servers (Node, Ruby, ...) and can't predict when port will be open to start making requests. So it's ok to try to connect after 250ms, 500ms, 750ms, ...
What would be your use case?