penguineer / Rabbarkable

RabbitMQ (AMQP) connector for the reMarkable API
https://hub.docker.com/r/mrtux/rabbarkable
MIT License
5 stars 0 forks source link

:sparkles: Add rate-limiting for API access #9

Open penguineer opened 2 years ago

penguineer commented 2 years ago

Apparently there is a rate limit for API access (whatever the number is). Add an option to limit the access rate globally.

penguineer commented 2 years ago

For anything that is authenticated (here the rate limit seems to be in effect) this could be done by creating a Flux that delivers API keys only with a specific rate instead of creating a Mono every time.

This Flux could also solve the renew-problem in #5.