Hi,

By "sharing" you mean "sharding" right?

It is completely possible to use sharding without akka-persistence. You can
use custom persistence to achieve saving and restoring state of an actor.
Alternatively, you can use persistence with only snapshots, and you might
use your own SnapshotStore plugin to store the state as you see fit.

sharing system creates the actor. I this would be important to bind the
> actor to the entity so the same actor will be consulted later for
> information on the entity. How can I get the sharing system to pass the id
> to the props when the actor is created?
>

Even when you use Akka persistence, the persistenceId of the sharded actor
usually consists of the actor name, which corresponds to the entityId (see
the sample here:
http://doc.akka.io/docs/akka/2.4.7/scala/cluster-sharding.html#An_Example
esp the comment "self.path.name is the entity identifier (utf-8 URL-encoded)
")



> Also how can I get the sharing system to create these actors in bulk
> because I might have to start several thousand at once and would rather not
> have to make several thousand DB calls but rather one call.
>

There is no built-in support for that. If you are using akka-persistence
with only snapshots, and you provide your own snapshot store plugin, then
you are able to implement batch writes on your own if you want, but the
higher level sharding service has no way of implementing this.

-Endre


>
> 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.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      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