simongray / sino.study

A modern Chinese dictionary.
http://sino.study/
8 stars 0 forks source link

Add rate-limiting #54

Open simongray opened 6 years ago

simongray commented 6 years ago

See: https://github.com/myfreeweb/ring-ratelimit

Seems pretty easy, just need to wrap and supply an error-handler. I should probably differentiate between dev and non-dev + different routes too.

In the future, this could be also used to further limit costly CoreNLP calls, as well as upping the limits for registered users.