kermitt2 / biblio-glutton

A high performance bibliographic information service: https://biblio-glutton.readthedocs.io
117 stars 15 forks source link

Maximum number of requests and request/second #59

Open lfoppiano opened 3 years ago

lfoppiano commented 3 years ago

After several weeks of investigation, I finally found a rather clean solution for implementing a mechanism for limiting the number of requests, using directly dropwizard:

Both return 503 by default, so no need to implement such a mechanism by hand.