express-toobusy

0.0.3 • Public • Published

express-toobusy

Keep your Express server responsive even under heavy load! This trivial middleware uses toobusy-js library which is doing all the magic. Express-toobusy is just a handy wrapper middleware for Express.

Usage

 
    app.use(require('express-toobusy')());
 

If you want to specify your own max lag value, use it like this:

 
    app.use(require('express-toobusy')(40));
 

For details on max lag meaning and default values refer to toobusy-js documentation.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i express-toobusy

Weekly Downloads

1

Version

0.0.3

License

WTFPL

Last publish

Collaborators

  • olegas