top | item 1504196

Writing a Redis client library for Node.js

9 points| jbr | 15 years ago |mihai.bazon.net | reply

3 comments

order
[+] fictorial|15 years ago|reply
I can certainly understand writing this for learning's sake and probably your NIH. 

What I fail to understand is why you cite lack of transaction support in my redis client as a reason to reinvent the wheel.

Transaction support (really, macros) is on my to-do list. Why not fork the project on GitHub, patch it to support MULTI/EXEC/DISCARD, and send me a pull request instead of being passive aggressive?

I have been quite responsive to issues raised on GitHub, but maybe a bit less lately as I have a new baby daughter distracting me from coding (happily!).

[+] Tautologistics|15 years ago|reply
Congrats on the kid!

I came away with the impression that the focus was on trying something new in order to learn and that a lack of transactions in existing libs was merely the excuse to experiment. There is still the performance issue with his approach, which I am investigating out of curiosity, so I wouldn't worry about it replacing yours.

It's hard not to take criticism personally but there will always be people who think you code is shit and approach all wrong.

BTW - I'm still running a patched version of the latest redis-client in production. Any thoughts about the patch to fix the internal buffer length calculations (changing "Math.max(currentLength * 2, atLeast * 1.1);" to "Math.max(currentLength * 2, offset + atLeast * 1.1);")?