DEV Community

Discussion on: Async Redis key mutation notifications in Rails

palkan_tula profile image
Vladimir Dementyev

TIL Redis Keyspace Notifications.

That looks interesting.

I can't say I'm convinced by the redis-cli set whatever argument, but multi-application or cross-service scenarios sound reasonable.

Do you have a particular use-case in mind?

leastbad profile image
leastbad • Edited

You named the use cases!

You could have two monoliths sharing one Redis database. You could be dealing with a microservices setup. It could even just be multiple instances of the same app or dyno talking to a shared Redis instance.

Big picture, I think it's super weird and sad how our community only sees Redis as a glorified memcached upgrade. It has an embedded Lua engine! It can do realtime ML tricks on a video feed. It's outrageously flexible and powerful. It's like buying a PC and then only running WinAmp on it. Sure, music is cool, but...

For example, you could set up a Redis instance to process cryptocurrency data in realtime, or web server logs, or IoT sensor data. I'm pretty sure you could bring in OpenStreetMap data and run a route planner.