简体   繁体   中英

Migrate Restify (throttler plugin) to Nest (throttle module)

I'm migrating my Restify project to Nest and I have to migrate the throttle plugin too. I noticed that the Restify throttle plugin uses burst (in requests) and rate (in seconds) as options for throttling.

Are these two properties equivalent to Nest throttle module properties limit (in requests) and ttl (in seconds)?

It makes most sense to me if they would be the same but I can't find much information about this.

After a cursory look at their documentation, yes

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM