Markus Ahlstrand
Markus Ahlstrand
Hi @pzuraq and sorry for the late reply! It would be great if you would like to do a PR for this. I haven't used this functionality in a while,...
Hi @donchev7, It is true that it's stored in memory of the worker, but the global variables are persisted between invocations so it actually works pretty well. The rate limit...
Interesting.. I wonder if it's due to inactivity, so if you had more traffic it would keep it in memory? I've been thinking about if it's possible to get a...
Think it could be implemented to be atomic, you just need to keep track of any updates that are in-flight. So, basically we keep an up to date counter in...
The only thing is that it still will be per edge location.. So, it depends on if this is limitation you could live with?
Hi @donchev7 ! Saw that cloudflare released a beta of durable object: https://blog.cloudflare.com/introducing-workers-durable-objects/ This would be the perfect fit for a ratelimiter right? Something that would be interesting for you?
Yay! Now durable objects are available. I'll see if we could get a first version working
HI @danbars, Sounds like a good idea. Do you think we should separate the repo or keep it as a monorepo and publish the handers separately? And should there be...
Maybe we could do a 2.0 release where the handlers are separated out? Might be a few other breaking changes that we could add at the same time.. One benefit...
Good point with the loggers. I had one version in the beginning where you could create "named logger" and reference them in handlers. I removed this and instead went with...