Hard to answer without data from perf measurement.
On the other hand I don't think that the EventBus, the implementation of
which happens to be actor based, would handle millions of subscribers more
effectively that a "normal" actor.
Heiko
On Wed, Apr 9, 2014 at 7:11 PM, Chanan Braunstein <
cha
The golden rule of optimization is: measure. measure. measure. :)
On Wed, Apr 9, 2014 at 9:23 PM, Chanan Braunstein <
chanan.braunst...@pearson.com> wrote:
> Hi Viktor,
>
> I am guessing you mean measuring my current way - i.e. keeping a hashmap
> of the users inside the ChannelActor. That's fin
Hi Viktor,
I am guessing you mean measuring my current way - i.e. keeping a hashmap of
the users inside the ChannelActor. That's fine, it sounds like that is way
to go, I am just trying to validate the correct way, if it makes sense to
everyone, I will keep going and stress test. If someone has
Hi Chanan,
How about measuring such a scenario?
Cheers,
V
On Apr 9, 2014 9:11 PM, "Chanan Braunstein"
wrote:
> Hi Heiko,
>
> Right, it would be, and that is the way I have it now, I don't think I
> should maintain that last myself (maybe I am wrong). So my first attempt to
> remove that list fr
Hi Heiko,
Right, it would be, and that is the way I have it now, I don't think I
should maintain that last myself (maybe I am wrong). So my first attempt to
remove that list from my actor was with the EventBus but that is limited to
one JVM.
So my questions are:
1. Should I just stop worryin
No, an actor has exactly one unique actor path.
I'm not sure whether I fully understand, but maybe a channel could be an
actor which allows other actors (users) to register as listeners?
Heiko
On Wed, Apr 9, 2014 at 12:24 PM, Chanan Braunstein <
chanan.braunst...@pearson.com> wrote:
> My use c
My use case:
I have an Actor per websocket called a User.
I have groups of user that need to be notified together. A group is called
a Channel.
My current implementation is a Channel contains a hashmap of the user id
and the ActorRef to notify. My concern about this is that it won't work
(with