Hey. In my case some of the messages do not contain initially Id that is used by IdResolver (all of the messages that act as initialization messages). Before I introduced cluster-sharding to my project when repository actor received such message it would create new persistent actor with persistentId = UUID.randomUUID and then forward the message to new actor.
When I was introducing cluster sharding I noticed that ShardRegion actor does what my repository actor so I wanted to simulate similar flow by returning enveloped message through IdResolver which contains original message w/o id + generated id. In ShardResolver I wanted to calculate shard identifier based on the id in the envelope. At least that was the plan after I read the docs. -- >>>>>>>>>> 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.
