-
Notifications
You must be signed in to change notification settings - Fork 213
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
change from node_redis to ioredis #21
Conversation
I just realized I wrote up a big response to this a while back, and forgot to hit enter. Fortunately the tab was still open, so here we are - apologies for the delay! I looked into both libraries a bit more and considered a few things. First, performance. It looks like node_redis recently did a bit of a perf overhaul and activity on the project has generally picked up. I read through some performance comparison discussion here and ultimately decided to run the benchmarks myself. I found both locally and on a digitalocean instance that node_redis is not significantly, or even strictly, faster than ioredis. Next, weight/dependencies. I prefer to minimize the dependency tree; node_redis depends only on a deque implementation (which has no further dependencies), while ioredis depends on that and a few more. ioredis's dependency on lodash in particular adds a lot of weight:
Similarly, the added memory usage to node of Having given it more consideration, I'm on board with migrating to ioredis and will look into doing so in the next few days. I'll start by moving the work you've done here onto a branch and then looking into whatever else needs fixing from there. I'll aim to have it done by the end of the weekend, if not sooner. |
Any progress? |
I sort of lagged on this for a while, but with my holiday break starting later today I should have time to make some long-awaited progress! I have a nice todo log of features that I'm quite excited to get in and this is at the top of that list. |
I can't wait to see the new features 😄 |
ioredis@2.3.0 is much smaller: du -sh node_modules/ioredis/
488K node_modules/ioredis/ |
What's the latest on |
The problem is not the performance (although ioredis is faster), It is the cluster support |
Ah, apologies. |
Two tests failing, if you have some time to spare please review it