BinaryJazz / genrenator

Random genre creation
https://binaryjazz.us/genrenator-api/
GNU General Public License v3.0
11 stars 0 forks source link

adds cap and transients #18

Closed binarygary closed 6 years ago

binarygary commented 6 years ago

Yeah, I don't know that we need to be that worried though... The logic breaks down if we are to transient 101 as the cached 100 + 1 more. At second 99 a user loads the endpoint with 101 thus extending the transient time on the original 100 by 101 seconds.

I'm fine if someone wants to hit 100 and 101 as a work-around for new genres... Should we actually see issues with usage, we can discuss access tokens with heavier throttling for non-tokened access.