parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Why Doesn't Parse-Server Have Rate Limiting?

Open noder199 opened this issue 10 years ago • 2 comments

I understand that technically rate limiting is possible via cloud code, but it would be great to have it built-in to parse-server. For instance, the setting could be described as: "If a user (or IP address) is submitting more than 1 request per __ seconds, then return an error."

Please look into this. Thanks.

noder199 avatar Apr 15 '16 07:04 noder199

You Can easily achieve this with HAProxy rate limiting or nginx rate limiting.

Note that implementing the feature at the application level won't prevent the saturation of the number of open connections to your server nor the consumed bandwidth, this is why, we usually place that security feature in the load balances, to prevent the request coming to the application server itself.

flovilmart avatar Apr 15 '16 11:04 flovilmart

@flovilmart Thanks, that is great to know!

I am actually using Google App Engine, it looks like it does not currently support rate limiting. Azure does though. Not sure about AWS Elastic Beanstalk.

I found out that for my particular scenario (a user creating tons of accounts), what I actually needed were dynamic IP address restrictions. Both Azure and AWS support this.

noder199 avatar Apr 15 '16 15:04 noder199