-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for ioredis(redis-client lib) #120
Comments
I haven't tested it myself. From a quick glance at the README of ioredis, it looks compatible. If you want, you could clone the repo, change the tests to use ioredis instead of node_redis and then run the tests. That should give you a good idea, on whether it works or not. |
Hi @maritz, thank you for the response. I tested with ioredis. It works in a way, meaning that the keys are set in db, but there are some errors e.g. it considers that the client is not connected because different APIs for connection status checking. |
It may be great if we can in proper way figureout the list of incompatible/missing API of ioredis. 1 year ago I made it somehow works for some tests. Afaik it was missing some specific API that I was using (stream, multi, etc.). I didnt continue with it... |
A compatibility layer could be implemented, to abstract away the differences. Is there any specific reason you'd prefer nohm using ioredis? |
They claim to be performance-focused and full-featured. It would be interesting to see benchmark of thunk-redis vs node_redis vs ioredis with the differents redis commands/features.
This benchmark is interesting but a bit old (not using last version of these 3 projects) : thunks/thunk-redis#12 I feel like node_redis was developped as a first project with the goal to focus on "compatibility". And now we have ioredis and thunk-redis who has been focusing of providing same set of feature but in an optimized way. These two projects has reached some interesting maturity. Imho It would be regrettable to not integrate them. |
Certainly worth investigating. I'd also really be interested if anyone has any real-world metrics of a case where nohm was slowing down an application. I haven't gotten to that scale with any of my personal projects yet, so I don't have any clue how important performance improvements could be. |
Alright, cluster/sentinel support is a pretty big reason to make nohm ioredis compatible. |
Published in v2.2.0. Cluster/Sentinel has not been tested yet, so if anyone wants to test it and runs into problems, please create another issue. Also note that performance appears to be worse with ioredis. |
Does nohm support ioredis?
The text was updated successfully, but these errors were encountered: