--
You received this message because you are subscribed to the Google Groups "Redis DB" group.
To post to this group, send email to redi...@googlegroups.com.
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/redis-db?hl=en.
ZPUBLISH channel zzz msg
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.
On Wed, Jan 5, 2011 at 9:57 PM, Demis Bellot <demis....@gmail.com> wrote:
> This would provide a more explicit durable Pub/Sub like feature although it
> doesn't help the initial use-case much (of transparently maintaining a
> back-end RDBMS/index in sync) since it requires an explicit additional
> ZPUBLISH operation so is not triggered by a normal write operations (i.e.
> SET). We could already achieve a similar effect by forcing each client to do
> an explicit ZADD after each write operation, unfortunately this would be
> invasive as clients would be required to *know and perform* the
> additional required operation.
> Although *it is* a more explicit Pub/Sub operation, so useful for other
> use-cases that need it.
> Maybe a better syntax for my initial feature above would be better off with
> the following format:
If you want to monitor writes, and given that we already have a
MONITOR command, I believe MONITOR WRITES is the best solution.
Still, same problems as other solutions: if the processing MONITOR
WRITES dies, you'll loose events; if you have multiple MONITOR WRITES
running for performance/reliability, all of them receive all the
events.
I suppose a "MONITOR WRITES shared_secret", where "shared_secret"
would be shared by multiple workers and only one of them receives the
event would help, if you don't have ordering issues that is.
Basically (from AMQP world), you want a binding that listens to writes
and feeds a single mailbox, and that mailbox can be consumed by a set
of workers. Thats the most reliable way of doing it.
Bye,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:me...@simplicidade.org
mailto:me...@simplicidade.org
To unsubscribe from this group, send email to redis-db+u...@googlegroups.com.