Open bkniffler opened 3 months ago
Totally doable, but our main focus on serverless environments. Maybe we can let people use ioredis
and/or redis
for serverful environments. I'll discuss this with the team.
Edit: For now you can do the following -> https://github.com/upstash/ratelimit-js/issues/60
@ogzhanolguncu If the team is moving forward with this integration, I would like to work on it.
@ogzhanolguncu the linked solution does not work, up stash rate limit depends on more functions by now.
hset, evalsha, scriptLoad, smismember, multi
using ioredis for these methods seems to not work either out of the box, think the adapter needs more effort to be made working. would love this to be part of ratelimit-js, then at least its clear when compatibility breaks.
Any chance this is going to land sometime?
Sorry to say that, but team don't wanna move forward with that approach for now. But, we can't say you guys can't come up with an adapter 😉 If you know what I mean. So feel free to @sourabpramanik or @bkniffler make your own adapters.
Gotcha @ogzhanolguncu
If you have a working solution make sure to put it here so other people can use it.
Any chance we could get this ioredis compatible? Would like to use upstash via ioredis to remove http overhead, and ioredis is one of the recommended clients for upstash, but its not compatible with ratelimit-js.