#Durable object TTL/Expiration

16 messages · Page 1 of 1 (latest)

plain solar
#

is it possible to do this?

red olive
plain solar
#

anyway, should I use DO or KV for rate limiting feature on my API Gateway?

red olive
#

DOs would be a better fit. KV is eventually consistent, has limits on how much you should update it (one write per key per second iirc), and more expensive

plain solar
#

I see

red olive
#

CF has free rate limiting as well, but a bit restricted/limited on free plan

plain solar
#

tysm

red olive
plain solar
red olive
# plain solar yeah, I've been looking for this, but because of the description _that actually ...

Read the readme

But it doesn't rate limit anything

Yeah, that's the sad truth. The code is there to decide whether or not a request should be rate-limited, but currently, it just outputs the results in a JSON response. The reason is that this is how it's being used as part of another project I'm working on. That said, I think it's a good starting point as it would require minimal changes from you to send the right responses back.

plain solar
#

expire after 25h after first value set

plain solar
red olive
#

It says "it doesn't rate limit anything" because in their example it just returns the rate limiting info rather then actually rate limiting anything, but of course that could be changed

plain solar