-
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 part 2 #138
Conversation
This reverts commit ace00a3.
620ab0f
to
4950b48
Compare
Hm, so for the simple stresstest benchmark using ioredis is actually quite a bit slower than node_redis. ioredis
node_redis
(I did several of those, also tried 3000 and 10000 iterations, similar results) So going from node_redis to ioredis incurs about 20-25% performance loss on saves. There is also an increased memory cost for ioredis in this test, but my measurements there are much less consistent. They point to about a 20% increase in memory used as well. I would have assumed that the difference would be in ioredis' favor and would be much smaller. There might be simple explanations for this and this might not apply to real-world applications at all. When is an application going to do 30000 requests in parallel like this stress test? (they are all started as fast as possible in a single for loop, so backpressure handling in the redis client is most likely a factor). So I will advise against using ioredis for nohm. You can still use ioredis in the rest of your application and just use node_redis for nohm, as far as I know the two should not cause conflicts. |
@thepipster do you think this is enough documentation for it? Should be different maybe? Btw: Do you have a specific need why you need ioredis? Would you be able to test sharding or cluster support or work on it if it doesn't work? |
Thanks, yeah the specific need is cluster support. Bummer about the performance, that is interesting. |
Merged and published as v2.2.0 |
Continuation of #137
Huge thanks to @thepipster!
Open tasks: