Yassin Amhagi
Yassin Amhagi

Reputation: 11

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.

Upvotes: 0

Views: 181

Answers (1)

Jay McDoniel
Jay McDoniel

Reputation: 70510

After a cursory look at their documentation, yes

Upvotes: 0

Related Questions