it looks like the elastic search library uses lua socket directly, so it will block the nginx worker (using it in nginx) when it runs queries. This patch provides support for openresty, using openresty's co-socket api to do non-blocking requests to the elastic search server
An example can be found here:
https://github.com/CriztianiX/lapis-elasticsearch/blob/master/lapis/db/elasticsearch.lua#L16
it looks like the elastic search library uses lua socket directly, so it will block the nginx worker (using it in nginx) when it runs queries. This patch provides support for openresty, using openresty's co-socket api to do non-blocking requests to the elastic search server An example can be found here: https://github.com/CriztianiX/lapis-elasticsearch/blob/master/lapis/db/elasticsearch.lua#L16