Re: [akka-user] Re: Mixing shard regions and proxy to shards regions in the same actor system

2017-10-31 Thread Patrik Nordwall
You're welcome

On Tue, Oct 31, 2017 at 11:55 AM, Eduardo Fernandes 
wrote:

> The fixed code.
>
>
> El martes, 31 de octubre de 2017, 11:54:49 (UTC+1), Eduardo Fernandes
> escribió:
>>
>> Fine!! It works like a charm!!
>>
>> Many thanks Patrik for your time on this!!
>>
>> I'm attaching the code fixed with your comments.
>>
>> Many thanks for your time on this. It was not clear for me that the role
>> was mandatory. I supposed that a non-role means any. My fault.
>>
>> Happy Halloween and thanks again!
>>
>>
>> El martes, 31 de octubre de 2017, 10:53:57 (UTC+1), Patrik Nordwall
>> escribió:
>>>
>>> In that example you are not using roles at all, which I think is
>>> necessary.
>>> You need 3 roles:
>>>
>>>- backend-0 where you start region-0, and start proxy for region-1
>>>with role backend-1
>>>- backend-1 where you start region-1, and start proxy for region-0
>>>with role backend-0
>>>- frontend where you start proxy for region-0 with role backend-0,
>>>and proxy for region-1 with role backend-1
>>>
>>> /Patrik
>>>
>>> --
> >> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

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


Re: [akka-user] Re: Mixing shard regions and proxy to shards regions in the same actor system

2017-10-31 Thread Eduardo Fernandes
Fine!! It works like a charm!!

Many thanks Patrik for your time on this!!

I'm attaching the code fixed with your comments.

Many thanks for your time on this. It was not clear for me that the role 
was mandatory. I supposed that a non-role means any. My fault.

Happy Halloween and thanks again!


El martes, 31 de octubre de 2017, 10:53:57 (UTC+1), Patrik Nordwall 
escribió:
>
> In that example you are not using roles at all, which I think is necessary.
> You need 3 roles: 
>
>- backend-0 where you start region-0, and start proxy for region-1 
>with role backend-1
>- backend-1 where you start region-1, and start proxy for region-0 
>with role backend-0
>- frontend where you start proxy for region-0 with role backend-0, and 
>proxy for region-1 with role backend-1
>
> /Patrik
>
>

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


Re: [akka-user] Re: Mixing shard regions and proxy to shards regions in the same actor system

2017-10-31 Thread Patrik Nordwall
In that example you are not using roles at all, which I think is necessary.
You need 3 roles:

   - backend-0 where you start region-0, and start proxy for region-1 with
   role backend-1
   - backend-1 where you start region-1, and start proxy for region-0 with
   role backend-0
   - frontend where you start proxy for region-0 with role backend-0, and
   proxy for region-1 with role backend-1

/Patrik


On Tue, Oct 31, 2017 at 3:52 AM, Eduardo Fernandes  wrote:

> Hi all again.
>
> After playing a bit with the sample code I saw other effect I still don't
> understand. I just modify the original code to enable creation of only two
> proxies instead of one materialized and proxy shard regions. When I do it
> the original materialized regions that worked before stop working.
>
> Please test it changing the boolean createProxyOnly in the beginning of
> the class to 'true'.
>
> Again many thanks for your time on this. I'm pretty sure that it is a
> simple mistake in my 15 lines sample code but I can't catch it.
>
> Best regards.
>
> /Eduardo
>
> --
> >> 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 https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

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