# Re-use zen discovery API

**URL:** <https://discuss.elastic.co/t/re-use-zen-discovery-api/22571>\
**Category:** Elasticsearch\
**Created:** [March 7, 2015, 5:03pm UTC](https://discuss.elastic.co/t/re-use-zen-discovery-api/22571 "2015-03-07T17:03:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pdesoyres](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pdesoyres/32/509_2.png) [@pdesoyres](https://discuss.elastic.co/u/pdesoyres)\
**Post date:** [March 7, 2015, 5:03pm UTC](https://discuss.elastic.co/t/re-use-zen-discovery-api/22571/1 "2015-03-07T17:03:13Z")

</div>

Hello,

I would like to know if I can use the zen-dicovery API of elasticsearch for  
a totally different project (using elasticsearch cluster also) but that  
also needs to scale horizontaly. I do not want to reinvent the wheel, and  
since i'm using elasticsearch library, I would like to take benefit of the  
elasticsearch API for nodes detection and master election.

Thanks by advance

_Pierre_

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 12, 2015, 5:58am UTC](https://discuss.elastic.co/t/re-use-zen-discovery-api/22571/2 "2015-03-12T05:58:52Z")

</div>

The discovery API is not modularized enough to use it outside of the  
Elasticsearch context. I would simply use something like Zookeeper, which  
is built exactly for situations like yours.

Cheers,

Ivan  
On Mar 7, 2015 7:03 PM, "Pierre de Soyres" [pdesoyres@gmail.com](mailto:pdesoyres@gmail.com) wrote:

> Hello,
> 
> I would like to know if I can use the zen-dicovery API of elasticsearch  
> for a totally different project (using elasticsearch cluster also) but that  
> also needs to scale horizontaly. I do not want to reinvent the wheel, and  
> since i'm using elasticsearch library, I would like to take benefit of the  
> elasticsearch API for nodes detection and master election.
> 
> Thanks by advance
> 
> _Pierre_
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/659be669-8a25-47bb-8258-08dd1e1e3e59%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDiOX9vSPYzcVBCQ5Yb1EKEAKCLf38BXN%2Bq4yboix4Efw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDiOX9vSPYzcVBCQ5Yb1EKEAKCLf38BXN%2Bq4yboix4Efw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:27am UTC](https://discuss.elastic.co/t/re-use-zen-discovery-api/22571/3 "2017-07-06T00:27:20Z")

</div>


