WebSocket + AKKA + Redis pub/sub

647 views
Skip to first unread message

Jason

unread,
Aug 21, 2012, 6:36:39 AM8/21/12
to akka...@googlegroups.com
I wonder know if anyone have tried to use websocket to send message to Redis pub/sub?


Viktor Klang

unread,
Sep 3, 2012, 8:21:57 AM9/3/12
to akka...@googlegroups.com
Hi Jason,

Apparently no one wants to admit to have done that :-)

Cheers,


On Tue, Aug 21, 2012 at 12:36 PM, Jason <arvi...@gmail.com> wrote:
> I wonder know if anyone have tried to use websocket to send message to Redis
> pub/sub?
>
>
> --
>>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>>> Check the FAQ: http://akka.io/faq/
>>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to
> akka-user+...@googlegroups.com.
> Visit this group at http://groups.google.com/group/akka-user?hl=en.
>
>

Jeremy Pierre

unread,
Sep 3, 2012, 12:10:42 PM9/3/12
to akka...@googlegroups.com
Apologies, I should have jumped in earlier - my team and I are using
websockets via Netty in Akka 2.0.x with RabbitMQ. Looks like Redis
pub/sub is a bit simpler but maybe I can help.

Can't give a lot of details about what specifically we're working on
but if you have general questions about setup/approach I'll do my
best.

Jeremy

gitted

unread,
Aug 19, 2014, 11:38:53 AM8/19/14
to akka...@googlegroups.com
This seems like a fairly common pattern/problem domain that people will be facing when they want to incorporate real-time updates on websites.

Is there anything open source that can help guide me on how to implement this?  I was thinking of using redis also but rabbitmq would be very similiar just the backing queue is different.

Ryan Tanner

unread,
Aug 19, 2014, 2:50:02 PM8/19/14
to akka...@googlegroups.com
I've never used it in production but waaaay back I built a proof-of-concept based on one of the Play Framework sample apps using Redis pub/sub to feed a WebSocket based chat room.


It does extremely little, really just round-trips messages across Redis pub/sub rather than having messages be sent directly out to other subscribers.

Ngoc Dao

unread,
Aug 20, 2014, 10:22:41 PM8/20/14
to akka...@googlegroups.com
The original question about WebSocket + Akka + Redis was 2 years ago.

Now, you don't need Redis any more, because:
* Akka is already very good at messaging.
* Recent versions of Akka have clustering feature: http://doc.akka.io/docs/akka/2.3.5/scala/cluster-usage.html

In short, you only need WebSocket + Akka.
To easily work with multiple messaging channels (like multiple chat rooms) in a cluster, you can also use this library:
https://github.com/xitrum-framework/glokka

Simple chat example that can run in a cluster:
http://107.167.187.67/websocketChatDemo
Reply all
Reply to author
Forward
0 new messages