Thanks Justin,

If Akka doesn't support different actors under a shard region, Can I 
overwrite ShardCoordinator and define the routing logic in the coordinator?

For example, perhaps I can launch two ShardRegions such as SR and SR_DEV, 
the coordinator of SR redirects the message id ended with 0 to 20 to SR_DEV

Thanks


On Thursday, July 30, 2015 at 12:58:55 PM UTC-4, Justin du coeur wrote:
>
> Patrik is the expert, but looking at the API and code as it currently 
> stands, I doubt it.  To make this possible seems like it would require some 
> restructuring of Cluster Sharding so that you could pass in a 
> "PropsExtractor", corresponding to the Shard and Id Extractors, which would 
> return different Props depending on the message.  Not rocket science, but 
> it's a fairly esoteric requirement, so I don't know how high a priority it 
> would be.
>
> If you really need it, I suspect you could fork Cluster Sharding to make 
> it happen, and suggest a possible PR...
>
> On Thu, Jul 30, 2015 at 12:10 PM, Yifei <[email protected] <javascript:>
> > wrote:
>
>> The use case is that I have production version and development version of 
>> an actor
>> I want to route some traffic of this shardregion to dev actors
>>
>> Can I spawn different entry actors(pod and dev) according to the 
>> shardId/actorId under a shardregion?
>>
>> Thanks
>>
>> -- 
>> >>>>>>>>>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

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

Reply via email to