# Communication with two Node in same or different cluster

**URL:** <https://discuss.akka.io/t/communication-with-two-node-in-same-or-different-cluster/1635>\
**Category:** Akka Cluster\
**Tags:** akka-cluster\
**Created:** [July 20, 2018, 7:23pm UTC](https://discuss.akka.io/t/communication-with-two-node-in-same-or-different-cluster/1635 "2018-07-20T19:23:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![psinghal](https://avatars.discourse-cdn.com/v4/letter/p/cab0a1/32.png) [@psinghal](https://discuss.akka.io/u/psinghal)\
**Post date:** [July 20, 2018, 7:23pm UTC](https://discuss.akka.io/t/communication-with-two-node-in-same-or-different-cluster/1635/1 "2018-07-20T19:23:24Z")

</div>

Hi,

I have two node in my setup, one with role “frontend” another with “backend”.

Now I have two option to communicate from “frontend” -\> “backend”

1. First is to create two different cluster say Cluster\_1 for “frontend” and Cluster\_2 for “backend” and use Cluster receptionist concept for communication.
2. Second is to put them under same cluster and use cluster aware router concept for communication.

I am not sure about the pros and cons of above two methods or if there is any other better solution.

Thanks,  
PS

---

<div class="post-metadata">

**Author:** ![johanandren](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.akka.io/johanandren/32/85_2.png) [@johanandren](https://discuss.akka.io/u/johanandren)\
**Post date:** [July 24, 2018, 2:10pm UTC](https://discuss.akka.io/t/communication-with-two-node-in-same-or-different-cluster/1635/2 "2018-07-24T14:10:26Z")

</div>

I’d say that you should carefully consider what is the upsides and downsides for your application with the respective solution and weigh them against each other. Neither is wrong per se and would fit for some use cases.

If you decide you want to go with two clusters I’d recommend that you avoid the cluster receptionist and instead choose some other form of communication between the clusters (HTTP, gRPC etc) to make the two clusters more loosely coupled.
