Hi,

as you are well aware, running multiple separate Akka clusters increases 
operational/administrative burden for your application. Of course some 
applications need to run in separate clusters because of security / 
compliance constraints. But other than that, the more idiomatic way would 
be running a single Akka cluster and using cluster roles to manage how many 
instances of each service are active. I also think ShardRegion in proxy 
mode fits your use case very well.

Cheers,
Rafał

W dniu wtorek, 9 maja 2017 20:34:00 UTC+2 użytkownik Evgeny Shepelyuk 
napisał:
>
> Hello
>
> We're implementing  microservice system consisting of several services 
> representing completely different domains.
> Let's consider that we have following 
>
>    - wallet service representing customer balance, supporting deposit, 
>    withdraw and get balance commands
>    - wallet client service that interacts with a wallet
>
> Because of Docker based infrastructure we have to use ConstructR for Akka 
> Cluster,so setup is not quite trivial.
> Our intentions were
>
>    - join wallet service instance into akka cluster
>    - do not join wallet client service into cluster
>    - expose each ShardRegion via ClusterClientReceptionist
>    - from wallet client service access wallets in shards via ClusterClient
>    
> But after digging into akka docs, I've found a possibility to use 
> ShardRegion in proxy only mode, so another architecture idea appeared
>
>
>    - join wallet and wallet client into the same Akka Cluster
>    - on wallet service nodes start ShardRegion in normal mode
>    - on wallet client nodes start ShardRegion in proxy only mode
>    - access wallets from wallet client using local ShardRegion
>
> Dear community, could you provide pros / cons of both solutions ?
> What is more AKKA way of achieving the goal.
>
> 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.

Reply via email to