Hacker News new | past | comments | ask | show | jobs | submit login

Awesome that you improved your stack with Redis, thanks for sharing. I'm not sure about what exact feature you are referring to, please could you describe it? Thanks.



http://redis.io/topics/notifications notify-keyspace-events Kx

Currently, NodeJS subscribes to expired keys. When the key is expired it will delete the 'physical' data from the server (thumbnails, more indepth info, etc). If NodeJS fails, even for a few seconds, I will forever have the 'physical' data stored on the server (as it doesn't re-run the expired event).

Having lua scripting do what NodeJS currently does would fix the problem.

Apart from that, Redis is perfect. ;)


I experimented with adding exactly that recently: https://matt.sh/advanced-redis-pubsub-scripts (code in the branch at https://github.com/mattsta/redis/tree/pubsub-scripting).

It hasn't been extensively tested, but it works for my isolated test cases.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: