Not really, host one supervisor per shard, have each supervisor hold a
compressed list of IDs (so that it knows what IDs is hosting) and just ask
on each local cache which shard has some ID,
then build a Map supervisors, and for each key send a
message, you send one message to each supervisor an
Yeah that occurred, the question is that their supervisor is the cluster
sharding system so that makes it complicated.
On Sunday, June 12, 2016 at 12:36:57 PM UTC-5, Guido Medina wrote:
>
> You could create a compressed list of Integers and send the message to
> their supervisor, that way the c
You could create a compressed list of Integers and send the message to
their supervisor, that way the children's supervisor pass that message to
each actor ID, assuming your IDs come from a sequence,
if you have from 1 to 1m, that can be expressed as [1,20], [25,50], [52],
[55..100] where each a
I don't necessarily want to drop location transparency. I am just concerned
because I have millions of actors across the cluster and they have to be
started at some point in order to get messages. Also I need to send the
same message at times to a ton of them, potentially in the millions. I am
And with the new akka remote it might be pointless, you could control some
association by for example, deploying children actors of a shard actor, in
that matter such children are local to their parent and to their siblings,
but that's the end of it,
anything else because it will be you against
On Sat, Jun 11, 2016 at 2:14 PM, kraythe wrote:
> It doesnt seem very specific to my problem scope so I am wondering if
> there is a better way to do this that I have missed.
>
The crux of the problem here is that you're fighting one of the central
design tenets of Akka: location transparency.
The use case is I have a bunch of entities that are in an RDBMS and they
are represented in memory by an actor per entity and those entities are
spread across the cluster using ClusterSharding (assuming I can figure out
why it wont start for me). However, on a per-node basis I would like to be