NoppesTheFolf / Fluffle

A reverse image search service tailored to the furry community.
MIT License
13 stars 1 forks source link

Add effort-based rate limiting #24

Open NoppesTheFolf opened 1 year ago

NoppesTheFolf commented 1 year ago

Currently, Fluffle does nothing when it comes to rate limiting because all-in-all it is quite efficient and the hareware it runs on is fairly decent...

However, processing animations and videos will consume way more resources than images do. At that point it will be beneficial to implement some rate limiting system.

The rate limiting system should be effort-based. Meaning the more resources a request takes up, the more effort it costs. This will also reward API consumers to interact with the API in an efficient way (resizing images, animations and videos before sending them over, for example).