[akka-user] Re: two-way on websocket

2016-06-08 Thread chandra sekhar kode
I am also interested in this .. my code http://stackoverflow.com/questions/37716218/how-to-keep-connection-open-for-all-the-time-in-websockets On Wednesday, June 8, 2016 at 2:13:44 AM UTC+5:30, Marcelo Alves wrote: > > Hello, > I would like to configure my websocket client connection to wo

Re: [akka-user] Newbie question about storing ActorRef in a member variable

2016-06-08 Thread Derek Williams
One correction: Future.value is not blocking, it returns the current state of the Future. Which means there is a good chance the Future will not be complete and None will be returned even if the actor exists. On Tue, 7 Jun 2016, 20:12 Justin du coeur, wrote: > Actually, again, this is very *un*c

[akka-user] Re: Another Newbie Question -- Sending message to Millions of Cluster sharded actors.

2016-06-08 Thread Rob Crawford
As I recall, the distributed pub/sub sends a single message to each node, then the message is distributed to the subscribers on those nodes. So it's likely more efficient to use this method to ask the actors for their state. More efficient both ways -- no million-iteration loop to generate the

Re: [akka-user] Re: Another Newbie Question -- Sending message to Millions of Cluster sharded actors.

2016-06-08 Thread Justin du coeur
Just one addition to that: have you chosen a better-than-default serializer? I generally agree with the principle of "no premature optimization", but this *is* a common newbie problem, and might make a major difference in the case you're describing. That is, it's generally agreed that the lowest-

[akka-user] Re: Another Newbie Question -- Sending message to Millions of Cluster sharded actors.

2016-06-08 Thread kraythe
Fair comment. :) On Wednesday, June 8, 2016 at 11:25:22 AM UTC-5, Ryan Tanner wrote: > > Unless you've profiled and found it to be a problem, worry about it later. > > On Wednesday, June 8, 2016 at 10:10:37 AM UTC-6, kraythe wrote: >> >> Sorry but i have another newbie question. I have an actor t

[akka-user] Re: Another Newbie Question -- Sending message to Millions of Cluster sharded actors.

2016-06-08 Thread 'Ryan Tanner' via Akka User List
Unless you've profiled and found it to be a problem, worry about it later. On Wednesday, June 8, 2016 at 10:10:37 AM UTC-6, kraythe wrote: > > Sorry but i have another newbie question. I have an actor that uses > cluster sharding. There are potentially millions of these in the sytem > concurrent

[akka-user] Another Newbie Question -- Sending message to Millions of Cluster sharded actors.

2016-06-08 Thread kraythe
Sorry but i have another newbie question. I have an actor that uses cluster sharding. There are potentially millions of these in the sytem concurrently and they maintain some state. At some point I would like to contact a million of these and ask them for their state to render information or ap