spdx-online-tools icon indicating copy to clipboard operation
spdx-online-tools copied to clipboard

Create a mechanism to limit the requests to the online tools

Open goneall opened this issue 7 years ago • 6 comments

Programmatic access could put a substantial load on the service if multiple requests are made with high frequency.

Suggest an enhancement to govern the rate at which requests from the same user and/or IP address is made.

This could also apply to the web access.

goneall avatar Jan 20 '18 19:01 goneall

@goneall do you have the problem already or not? If not you may be worrying for nothing? FWIW, there are throttling things that can be plugged in Django alright

pombredanne avatar Jan 27 '18 11:01 pombredanne

@pombredanne Not a current problem, but it has not been widely advertised (still waiting for the Linux Foundation to provide the server). Good point on the Django features - this may be an easy solution. Perhaps someone familiar with Django can create a PR? This also may be a good first feature for someone new contributing to the tools.

goneall avatar Jan 27 '18 18:01 goneall

@goneall @pombredanne I shall start working on this.

tjasmith avatar Mar 06 '19 20:03 tjasmith

@rtgdk @goneall @pombredanne If that is fine by you; I would like to use this: https://django-ratelimit.readthedocs.io/en/stable/

tjasmith avatar Mar 16 '19 07:03 tjasmith

@goneall @pombredanne I have sumitted a PR for this issue.

The license sumission is reduced to 100 per hour by a particular user. When the limit is reached, the modal below is shown. quota2

tjasmith avatar Mar 16 '19 19:03 tjasmith

@goneall @rtgdk @pombredanne I have updated the PR of this issue.

tjasmith avatar Mar 25 '19 12:03 tjasmith