# Elasticsearch in vert.x

**URL:** <https://discuss.elastic.co/t/elasticsearch-in-vert-x/15194>\
**Category:** Elasticsearch\
**Created:** [January 10, 2014, 9:25am UTC](https://discuss.elastic.co/t/elasticsearch-in-vert-x/15194 "2014-01-10T09:25:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Chazen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ryan_chazen/32/1670_2.png) [@Ryan\_Chazen](https://discuss.elastic.co/u/Ryan_Chazen)\
**Post date:** [January 10, 2014, 9:25am UTC](https://discuss.elastic.co/t/elasticsearch-in-vert-x/15194/1 "2014-01-10T09:25:40Z")

</div>

Hey

I was trying to use the elasticsearch java api directly in vert.x (async  
framework) However I ran into an issue - vert.x wants to manage it's own  
threads and sets up runloops etc inside them. The async callbacks from the  
elasticsearch api run in their own thread pools and not on the thread that  
originally called them. As far as I can tell, the only solution would be to  
replace the elasticsearch threadpool with the vert.x one - but this doesn't  
seem possible. Is it possible to replace the thread pool?

Ryan

--  
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/b981e223-c4df-4b4d-9959-635dac8fd6f2%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b981e223-c4df-4b4d-9959-635dac8fd6f2%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Andrey\_Podshivalov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrey_podshivalov/32/1882_2.png) [@Andrey\_Podshivalov](https://discuss.elastic.co/u/Andrey_Podshivalov)\
**Post date:** [January 10, 2014, 10:45pm UTC](https://discuss.elastic.co/t/elasticsearch-in-vert-x/15194/2 "2014-01-10T22:45:43Z")

</div>

maybe better to put elasticsearch api calls into worker module

--  
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/3f53cd92-de40-412e-be45-11427e146376%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3f53cd92-de40-412e-be45-11427e146376%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:57am UTC](https://discuss.elastic.co/t/elasticsearch-in-vert-x/15194/3 "2017-07-06T01:57:20Z")

</div>


