How to support looser coupling in scaled out Akka systems?

128 views
Skip to first unread message

manwood

unread,
Jan 10, 2015, 10:34:17 PM1/10/15
to akka...@googlegroups.com
I would like to be able to publish messages on an 'message bus' within my Akka system, rather than force actors to know about the actors that consume the events they generate (ie. avoid using context.actorOf). 

I know there is the event bus construct, but my understanding is this is limited to operating within a local process. Is there a recommended way of supporting a properly message-driven Akka architecture that scales across remote processes? 

Ryan Tanner

unread,
Jan 11, 2015, 12:18:35 AM1/11/15
to akka...@googlegroups.com
If you want distributed pub/sub, I would use an actual pub/sub system.  Akka can certainly do it, but Kafka or RabbitMQ are built specifically for that purpose, especially if you want distributed pub/sub.  Of course the publishers and consumers on either end can be Akka-based.

Though there is the distributed pub/sub extension in contrib: http://doc.akka.io/docs/akka/snapshot/contrib/distributed-pub-sub.html

mark

unread,
Jan 11, 2015, 12:24:58 AM1/11/15
to akka...@googlegroups.com

Thanks Ryan, that certainly makes sense and is something I'm considering, though I would rather not introduce another technology if possible.

That contrib from Patrik looks promising, I would be interested to know if anyone has used it in a meaningful production scenario and, if so, what the experience was like. Also if it's ever likely to make it into the main library..

--
>>>>>>>>>> Read the docs: http://akka.io/docs/
>>>>>>>>>> Check the FAQ: http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to a topic in the Google Groups "Akka User List" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/akka-user/GXeqwgU7Bd4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to akka-user+...@googlegroups.com.
To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Akka Team

unread,
Jan 14, 2015, 9:47:47 AM1/14/15
to Akka User List
Hello there,
Patrik's pub-sub module definitely has been used in larger deployments already and proved itself to be a valuable tool.
Our plans about the cluster utilities currently in contrib are to promote them into "akka proper", that is they'll end up in new modules: akka-cluster-sharding, akka-cluster-tools etc.

Here is the issue which talks about this move: https://github.com/akka/akka/issues/13711

I wouldn't hesitate on using it if it fits your use-case, even though it currently still resides in contrib.

-- 
Konrad

You received this message because you are subscribed to the Google Groups "Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+...@googlegroups.com.

To post to this group, send email to akka...@googlegroups.com.
Visit this group at http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.



--
Akka Team
Typesafe - The software stack for applications that scale
Blog: letitcrash.com
Twitter: @akkateam
Reply all
Reply to author
Forward
0 new messages