Re:Creating a Redis Module in 15 Lines of Code
by fzsix on Wednesday May 11, 2016 @02:20PM
(#11677831)
My hope is that the modules will be used more for common use cases (leaderboards, real-time counters, etc) instead of turning into gem dependency hell. Having a community backed module for a single purpose in that regard sounds pretty good, and the fact that they are written in C should filter out devs that follow a higher level dependency model as raw performance is a key metric.
[ Parent
| on HN ]
Re:Creating a Redis Module in 15 Lines of Code
by jasonjei on Wednesday May 11, 2016 @02:30PM
(#11677897)
I agree. I think Sidekiq is a good example of how modules are used. You can add the Pro features, use a community plugin, but the plugins usually don't affect core functionality (such as the Sidekiq "cron" scheduler, error reporting options, etc).
I think C is both a blessing and a curse. The challenge of using C correctly has led to memory leaks, remote code execution, segfaults, etc. I'd use Go if it's possible to write Redis modules.
Re:Creating a Redis Module in 15 Lines of Code
by tyho on Wednesday May 11, 2016 @02:45PM
(#11678048)
It is possible to make Go redis modules since go 1.5 thanks to the c-shared buildmode, I would be surprised if there wasn't a go package to make it easy within the month.