Alternatives to Pub/Sub

809 views
Skip to first unread message

Geoffrey Hoffman

unread,
Jun 24, 2011, 1:01:20 PM6/24/11
to redi...@googlegroups.com
Researching building a chat system (PHP) for live help on customer's website (versus hacking into available ones such as PHP Free Chat). 

Would love to use Redis... 

Just wondering, since Pub/Sub is "eventually going away" in Redis, I have some questions:

When will pub/sub be going away? Do we know? 

How to do similar feature to pub/sub with "futureproof" code in Redis? (helpful link is this the best way?)


I read this post which linked here, and mentioned AMQP and 0MQ - has anyone seen APE-project? Node.js? WebSockets?

What are all you smart people using if not Redis Pub/Sub?

Thank you & Cheers  

Josiah Carlson

unread,
Jun 24, 2011, 3:23:24 PM6/24/11
to redi...@googlegroups.com
There's actually a really nifty way to do this. I'm going to write it
up on my blog and reply to this thread again with the link :)

- 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.
>

Amirouche Boubekki

unread,
Jun 24, 2011, 4:18:22 PM6/24/11
to redi...@googlegroups.com
What are all you smart people using if not Redis Pub/Sub?

I think people use XMPP.

Cheers,

Amirouche 

Geoffrey Hoffman

unread,
Jun 24, 2011, 5:04:46 PM6/24/11
to redi...@googlegroups.com
On Fri, Jun 24, 2011 at 12:23 PM, Josiah Carlson <josiah....@gmail.com> wrote:
There's actually a really nifty way to do this. I'm going to write it
up on my blog and reply to this thread again with the link :)



Cool -  "... notice how we're not using Pub/Sub here..." Yeah, you hinted about it already... :-)

Josiah Carlson

unread,
Jun 24, 2011, 5:37:48 PM6/24/11
to redi...@googlegroups.com
That is an older blog post. I probably won't make this one into a blog
post, I don't really have time. Right now I'm commenting it so it's
understandable.

- Josiah

Josiah Carlson

unread,
Jun 24, 2011, 6:08:34 PM6/24/11
to redi...@googlegroups.com
The gist for the Redis-backed chat server is:
https://gist.github.com/1045789

If you have any questions, please ask :)

- Josiah

On Fri, Jun 24, 2011 at 2:37 PM, Josiah Carlson

Josiah Carlson

unread,
Jun 25, 2011, 2:14:32 AM6/25/11
to redi...@googlegroups.com
I just made a small update to make it properly clean up after itself.
I missed it this afternoon.

- Josiah

On Fri, Jun 24, 2011 at 3:08 PM, Josiah Carlson

Salvatore Sanfilippo

unread,
Jun 25, 2011, 6:50:51 AM6/25/11
to redi...@googlegroups.com
On Fri, Jun 24, 2011 at 7:01 PM, Geoffrey Hoffman
<geoffrey...@gmail.com> wrote:

> Just wondering, since Pub/Sub is "eventually going away" in Redis, I have
> some questions:

This is completely false, was never said, and I can confirm the contrary:

Pub/Sub is part of our API, we'll support it in the future forever.

Salvatore

--
Salvatore 'antirez' Sanfilippo
open source developer - VMware

http://invece.org
"We are what we repeatedly do. Excellence, therefore, is not an act,
but a habit." -- Aristotele

Geoffrey Hoffman

unread,
Jun 25, 2011, 9:20:00 AM6/25/11
to redi...@googlegroups.com, redi...@googlegroups.com
Wow, I apologize for misleading any list readers!

The only place I would've gotten that idea is this list. I have to review all the the past threads on the topic now.

So then pub/sub seems a great way to implement a chat server...

Dvir Volk

unread,
Jun 25, 2011, 9:36:45 AM6/25/11
to redi...@googlegroups.com
the only feature that's being discussed as bound for deprecation  is the database numbering.
[OT]: personally I'd suggest that if you it gets cancelled, it would be possible to do DEL by pattern similar to KEYS.
not in the same command of course, not to hurt DEL's performance, maybe PDEL (pattern del)?

Salvatore Sanfilippo

unread,
Jun 25, 2011, 9:38:15 AM6/25/11
to redi...@googlegroups.com
On Sat, Jun 25, 2011 at 3:20 PM, Geoffrey Hoffman
<geoffrey...@gmail.com> wrote:
> The only place I would've gotten that idea is this list. I have to review all the the past threads on the topic now.

Maybe, but more likely Leonardo DiCaprio put this idea inside your
mind, yesterday.

Sergei Tulentsev

unread,
Jun 25, 2011, 10:43:55 AM6/25/11
to redi...@googlegroups.com
No, I believe it was one of my threads. I remember this statement too.

--
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.




--
Best regards,
Sergei Tulentsev

Sergei Tulentsev

unread,
Jun 25, 2011, 10:53:26 AM6/25/11
to redi...@googlegroups.com
Aha, it is Geoffrey's active imagination, after all :-)
https://groups.google.com/d/msg/redis-db/bEOY5qpt4aE/Hlv0VQygxVsJ

Dave Peticolas

unread,
Jun 25, 2011, 10:47:49 AM6/25/11
to redi...@googlegroups.com
2011/6/25 Salvatore Sanfilippo <ant...@gmail.com>

On Fri, Jun 24, 2011 at 7:01 PM, Geoffrey Hoffman
> Just wondering, since Pub/Sub is "eventually going away" in Redis, I have
> some questions:

This is completely false, was never said, and I can confirm the contrary:

Pub/Sub is part of our API, we'll support it in the future forever.

Whew, glad to hear it!

dave
 

Josiah Carlson

unread,
Jun 25, 2011, 2:08:55 PM6/25/11
to redi...@googlegroups.com
Pub/sub might be a good way to implement a chat server if your clients
can always stay connected and always have a fast enough connection.
That's not always the case, which is why I hacked up that other
version yesterday :)

- Josiah

Jak Sprats

unread,
Jun 25, 2011, 6:14:03 PM6/25/11
to Redis DB
Hi Salvatore,

thanks for clearing this up, I got worried that pub/sub was going away
and was gonna write a long post on why it should still be around ....
which would have just added to the confusion and wasted everyone's
time

- jak

On Jun 25, 7:38 am, Salvatore Sanfilippo <anti...@gmail.com> wrote:
> On Sat, Jun 25, 2011 at 3:20 PM, Geoffrey Hoffman
>
Reply all
Reply to author
Forward
0 new messages