nestjsthrottlingrestify

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.


Solution

  • After a cursory look at their documentation, yes