Saturday, 20 July 2019

Restify Throttle - Usage - Storage - Rate & Burst ?

Am trying to code an API using Restify and came to know about their plugin called throttle: http://restify.com/docs/plugins-api/#throttleThis will limit the API usage.I can see that there's a tokensTable option in it. If I leave it as empty, where does it stores the data? In the memory?Am using MongoDB with Mongoose for the whole application. So should I have to use my database to store this, if so, how can I do that? And whether this would be a good choice?Also, what would be the best values that I should I use for the rate limiting? I will be hosting the application in the basic tier of AWS and would use the MongoAtlas for the database in the beginning.Also am a bit confused with their burst and rate. Is burst the limit for the total API calls per second, for the whole server ? And rate is the limit per second for each IP address?

Submitted July 20, 2019 at 07:30AM by vpp00708

No comments:

Post a Comment