UNPKG

koa-toobusy

Version:
27 lines (16 loc) 677 B
## koa-toobusy <a href="https://communityinviter.com/apps/koa-js/koajs" rel="KoaJs Slack Community">![KoaJs Slack](https://img.shields.io/badge/Koa.Js-Slack%20Channel-Slack.svg?longCache=true&style=for-the-badge)</a> [Toobusy](https://github.com/STRML/node-toobusy) middleware for koa. ### Install npm i koa-toobusy --save ### Usage ``` app.use(toobusy(options)) ``` options: - `maxLag`: {Number} set maximum lag to an aggressive value. - `interval`: {Number} set check interval to a faster value. - `status`: {Number} http responde code, default `503`. - `message`: {String} http responde message, default `Server is too busy, try again later.`. ### License MIT