Hello Peter,
nope, while the new event-bus is not itself an actor, is uses an actor to 
handle subscription / unsubscription / death in an asynchronous way.
It’s an interesting thought, but we have not done enough benchmarking (yet), to 
know if it’s a viable option.

The primary driver for this change was to get rid of the deprecated 
`isTerminated` use.
I have created a reminder ticket to investigate optimising the buses deeper: 
https://github.com/akka/akka/issues/15415 (this was part of a larger issue, but 
deserves a task of it’s own I guess).

Thanks for the interest and please feel free to share usage patterns!
On 20 June 2014 at 19:45:47, Peter Lappo (peter.la...@gmail.com) wrote:

Interesting. Does that mean the EventBus is an actor in 2.4.x and easier to 
extend?

On Friday, 20 June 2014 17:59:09 UTC+1, Konrad Malawski wrote:
Yes it does remove dead actors.

In 2.3.x this is implemented using the now deprecated `isTerminated` calls on 
the actor refs (impl is in ActorClassification).

And in 2.4.x (not yet released, but the feature is implemented already) the 
clean up happens via DeathWatch (so we’re able to avoid calling `isTerminated` 
all the time). The change required making the bus require an ActorSystem - 
which should not be a problem, since you’re most of the time implementing actor 
based apps anyway with these - migration guide here.

Happy hakking!

-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io
--
>>>>>>>>>> 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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.
-- 
Konrad 'ktoso' Malawski
hAkker @ typesafe
http://akka.io

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to