简体   繁体   中英

ElasticSearch Java client based on okHttp

In my current project I use Java High Level REST Client for ES queries. As my project artifact where I use ES client is AWS Lambda function, I look for ways to reduce the size of the artifact and to reduce memory consumption.

Also as part of improving dependencies usage in this artifact I replaced Apache HttpClient with okHttp3 .

But checking transitive dependencies in the project I found that ES Java High Level REST Client use Apache HttpClient. So I decided to find some ES Java client which based on okHttp (or some other lightweight HTTP client which I could use instead of okHttp). I know about different 'non-native' ES clients as Jest or Spring Data Elasticsearch but I don't know any okHttp-based ES client.

Are there any ES clients appropriate to my requirements? Or such optimizations don't have any sense?

最后,我决定不使用任何特殊的ElasticSearch客户端,而只是使用okHttp通过POST请求发送我的ES JSON查询。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM