- Josiah
> --
> 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.
>
>
MULTI
ZINCRBY square:123:456 1 foo
PUBLISH square:123:456 "foo is updated"
EXEC
You can think about the payload to publish to allow incremental
updates of the client-side data, but you get the point. Every
subscriber to the channel "square:123:456" will receive this message
and can act accordingly.
Cheers,
Pieter
2010/8/24 Pieter Noordhuis <pcnoo...@gmail.com>:
--
C уважением, Александр Лозовюк
Alpha-Beta-Release Blog
http://abrdev.com
2010/8/24 Александр Лозовюк <aleks....@gmail.com>:
> Pub/Sub in our test is very CPU-load :( if the message flowrate is
> more then 200 - 300 msg/sec (with 3 channel, and one psub client)
Didn't test this, but what about having a Redis slave just for SUBSCRIBE's?
Now that I think about it, is PubSub master-slave-aware?
Bye,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:me...@simplicidade.org
mailto:me...@simplicidade.org
@Aleks: I don't share the experience of pub/sub being this slow. On my
laptop I can easily get a throughput of 10k messages/sec with a couple
of subscribers.
Cheers,
Pieter
2010/8/24 Pieter Noordhuis <pcnoo...@gmail.com>:
--
For instance, I have an app where a producer publishes updates to
consumers, but where the consumer can update state and trigger certain
actions on the producer side of things. When the two would live in
different projects, I would lose the strict ordering of updates to the
key space and the corresponding triggers (not to mention the need to
run another daemon).
I hope this example clarifies a bit.
Cheers,
Pieter