Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No singleton #29

Open
nherment opened this issue Nov 19, 2013 · 3 comments
Open

No singleton #29

nherment opened this issue Nov 19, 2013 · 3 comments

Comments

@nherment
Copy link

It would be great if it was possible to create multiple toobusy instance, each with a different maxLag:

  var Toobusy = require('toobusy')

  var toobusy1 = new Toobusy()
  toobusy1.maxLag(20)

  var toobusy2 = new Toobusy()
  toobusy2.maxLag(100)

I'd like to use toobusy to manage multiple actions with different priorities.

Right now the workaround is to look at the lag value but that defeats the niceness of toobusy which returns a simple boolean.

@tlhunter
Copy link

tlhunter commented Dec 2, 2014

👍 I like the idea of one toobusy instance handling HTTP traffic, and another, more aggressive instance handling worker queue task consumption.

@asilvas
Copy link

asilvas commented Dec 2, 2014

This repo was abandoned quite some time ago. If this is the behavior you want, here is a wrapper for toobusy (a js fork) that has a number of spiffy features.

https://github.com/godaddy/node-connect-qos

@tlhunter
Copy link

Could you updated the README saying this repo is deprecated and link to the suggested module?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants