Option 2 is what I normally use since you're taking advantage of what Akka 
already has built in. I have a couple apps in prod that use this technique 
and it works fine for our needs

On Friday, May 6, 2016 at 6:42:33 AM UTC-4, scala solist wrote:
>
> I'm started to work with akka as scala actors become deprecated in favour 
> of akka. So I'm intrested only in local actor systems for now. What is 
> intended way to implement publisher subscriber template in akka?
>
> Akka gives multiple choice, I found three already:
>
>    - Store subscribers manually in a publisher actor and sends them 
>    messages
>    - Send messages to system eventbus and let subscribers to lookup for 
>    corresponding messages
>    - Create new eventbus for every publisher actor and let subscribers 
>    receive all messages without filtering.
>
> Which one is more suitable for local pubsub?
>

-- 
>>>>>>>>>>      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 the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to