I am sorry I have been blitzing the group with questions but I have a 
rather snug deadline so I hope you will excuse the flurry. 

I currently have Hazelcast integrated into my system as a distributed 
memcache. I would like to use cluster sharding for some entity actors but 
would like to persist their state in hazelcast. However, for efficiency id 
rather have the actor running wherever the data is distributed to by 
hazelcast. I am trying to figure out how I can make sure that my actor's 
partition (sort of like a shard)  in hazelcast is on the same node as the 
storage of its data. I can find out the node that hazelcast wants to host 
my entity on and get that address via:

hazelcast.getPartitionService().getPartition(key).getOwner()

However, I don't know how I can make the ShardRegion exist on the same 
node. Is it possible to dictate what node a shard region is on so I can 
match them up? I had thought about returning the partition id as the shard 
id but I have no way of guaranteeing that the Hazelcast partition and the 
ShardRegion will be on the same node. I was wondering if anyone had any 
ideas. Can I force a shard region to a node? 

Thanks in advance.

-- 
>>>>>>>>>>      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 [email protected].
To post to this group, send email to [email protected].
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