On Thu, Sep 6, 2012 at 10:55 AM, Felix Gallo <
felix...@gmail.com> wrote:
> As I'm fond of saying, Redis is not a database, it's a database construction
> kit. So if you want your ETL process to 'know' when data has been changed,
> either you want (as Josiah noted) MONITOR, or you want to roll your own
> logic for doing that.
One thing i'd love to see (or to have the time to code myself) is a
slave-protocol Redis library. Either a new library or maybe new
functionality for hiredis.
Ideally, you would create a connection and install some simple filter.
lets say, you're interested in SET, INCR, DECR, and DEL commands,
over keys that follow some pattern. then you wait for events. The
library connects to the server as a new slave, getting all
data-modifying commands, but silently discards those not matching the
filter. those that do match, are reported to the application.
Maybe not a library... what about a new 'monitor gateway' mode, that
connects as a slave. client applications connect to it (or Lua
scripts?), use some commands to create a filter (as above) and
associate them to message channels. the advantage is that there's no
need for new client libraries, and slow applications wouldn't tax the
master.
or am i complicating things needlessly?
--
Javier