Elasticsearch in vert.x


(Ryan Chazen) #1

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.
To view this discussion on the web visit 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.


(Andrey Podshivalov) #2

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.
To view this discussion on the web visit 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.


(system) #3