(no title)
b1-88er | 1 year ago
For the redis implementation, there should be fallback to in-memory counting instead blocking altogether. Currently the redis is a SPOF for the entire service.
b1-88er | 1 year ago
For the redis implementation, there should be fallback to in-memory counting instead blocking altogether. Currently the redis is a SPOF for the entire service.
maerF0x0|1 year ago
Also if you give limit/nodes per node and random assign a connection, you get correct answers on average, but a really janky pattern at the edge case (a user gets a 429, and retries and succeeds, then gets 429 again as they consume those last few requests).
b1-88er|1 year ago
Fair point, using in-mem storage changes the meaning of the limit, since accounting changes to local. Something to consider in the library API.
dasubhajit|1 year ago
thanks for the feedback. planning to make redis optional in next release.