Hacker News new | past | comments | ask | show | jobs | submit login

Does not even back off. I like the idea of offering libraries that provide some abstraction over standard libraries, but what's the use if it's just the most trivial solution that's unusable for any production situation?



Author here: That's a good feature request. I shall implement a truncating exponential backoff algorithm tonight (maybe tomorrow).

I've been using this in production for over 2 years and my load levels have not caused any usability issues (even without backoff). But no doubt for heavier sites, this will be an excellent feature, so thanks for suggesting it. If you have other feature requests, please add them to the issue tracker as I'm more likely to notice them: https://github.com/joewalnes/reconnecting-websocket/issues

In answer to your question - the use of an abstraction is to allow new features (like the one you suggested) to be added in one place so individual users can easily make use of the additions.


Fair enough, thanks for publishing :)


I came to the comments to mention exactly this. A production solution needs to back off or you're going to DDOS yourself if your pubsub cluster falls over.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: