Quite clear Endre, as always.

Many thanks again for your time!

Best regards from Spain.


On Thu, Jul 24, 2014 at 12:59 PM, Akka Team <akka.offic...@gmail.com> wrote:

> Hi Eduardo,
>
> There is no explicit table maintained for individual entries. Sharding
> maintains the table what ShardRegions are responsible for what ShardIds,
> but we don't have a list of all entities inside the ShardId -- since these
> relationships can be calculated by the IdExtractor and ShardResolver
> functions.
>
> I.e. if you want to send a message to a specific ID:
>  - the shard ID is calculated using the ShardResolver function
>  - using the internal tables we find out which ShardRegion hosts that
> ShardId
>  - the message is forwarded to that ShardRegion
>  - the ShardRegion forwards the message to the actor corresponding to the
> given Id (reactivating from disk if needed). This step does not need any
> tables
>
> -Endre
>
> -Endre
>
>
> On Thu, Jul 24, 2014 at 11:27 AM, Eduardo Fernandes <edu...@gmail.com>
> wrote:
>
>> Yes, we are using passivation. Tx.
>>
>> There is a way of retrieve the entries id's from the shardings?
>> There is a member called entries in the sharding region class but I don't
>> know if I have access to it.
>>
>> Tx again.
>>
>>
>>
>> El 24/07/2014, a las 10:19, Akka Team <akka.offic...@gmail.com> escribió:
>>
>> Hi Eduardo,
>>
>> Just to add more information, since the persistence support for sharding
>> allows persisted entries to be passivated (the actor is stopped to save
>> memory, but is restored from disk when needed) in which case the
>> ShardRegion -> shardId association still needs to be maintained although no
>> actors might be running in that shard. In fact this table is persisted by
>> the ShardCoordinator so if the node hosting it fails it can be reliably
>> restored in a new node.
>>
>> -Endre
>>
>>
>> On Thu, Jul 24, 2014 at 12:42 AM, Eduardo Fernandes <edu...@gmail.com>
>> wrote:
>>
>>> Ok. Entries are managed as expected. After looking at the code I
>>> understand what you mean.
>>>
>>> Thanks a lot for your help.
>>>
>>> Regards.
>>>
>>>
>>>
>>>
>>> El miércoles, 23 de julio de 2014 15:41:00 UTC+2, Eduardo Fernandes
>>> escribió:
>>>
>>>> Many thanks for your help Endre.
>>>>
>>>> Completely understood from shard perspective. I'll check if the entry
>>>> disappear if the actor is stopped (which is not the case for the sharding).
>>>>
>>>> Regards.
>>>>
>>>>>
>>>>>   --
>>> >>>>>>>>>> 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 akka-user+unsubscr...@googlegroups.com.
>>> To post to this group, send email to akka-user@googlegroups.com.
>>> Visit this group at http://groups.google.com/group/akka-user.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>>
>> --
>> Akka Team
>> Typesafe - The software stack for applications that scale
>> 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 a topic in the
>> Google Groups "Akka User List" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/akka-user/ravs9P4Nz7A/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> akka-user+unsubscr...@googlegroups.com.
>>
>> To post to this group, send email to akka-user@googlegroups.com.
>> 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 akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at http://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Akka Team
> Typesafe - The software stack for applications that scale
> 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 a topic in the
> Google Groups "Akka User List" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/akka-user/ravs9P4Nz7A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> 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 akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
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