# Is having laodbalancer better than sniffing cluster through client

**URL:** <https://discuss.elastic.co/t/is-having-laodbalancer-better-than-sniffing-cluster-through-client/231013>\
**Category:** Elasticsearch\
**Created:** [May 4, 2020, 5:42pm UTC](https://discuss.elastic.co/t/is-having-laodbalancer-better-than-sniffing-cluster-through-client/231013 "2020-05-04T17:42:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hac](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@hac](https://discuss.elastic.co/u/hac)\
**Post date:** [May 4, 2020, 5:42pm UTC](https://discuss.elastic.co/t/is-having-laodbalancer-better-than-sniffing-cluster-through-client/231013/1 "2020-05-04T17:42:27Z")

</div>

Is having loadbalancer better than sniffing cluster through client?

What is the recommended way to connect to es cluster from applications?

Elasticsearch2.2

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [May 4, 2020, 7:22pm UTC](https://discuss.elastic.co/t/is-having-laodbalancer-better-than-sniffing-cluster-through-client/231013/2 "2020-05-04T19:22:47Z")

</div>

Welcome!

No it's not better than having a coordinating node in front. The node belongs to the cluster and knows exactly where are located the shards in the cluster.  
A load balancer won't be aware of it.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 1, 2020, 7:22pm UTC](https://discuss.elastic.co/t/is-having-laodbalancer-better-than-sniffing-cluster-through-client/231013/3 "2020-06-01T19:22:50Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
