# Elastic Rest Client - Connection pooling

**URL:** https://discuss.elastic.co/t/elastic-rest-client-connection-pooling/160846
**Category:** Elasticsearch
**Created:** [December 14, 2018, 6:33am UTC](https://discuss.elastic.co/t/elastic-rest-client-connection-pooling/160846 "2018-12-14T06:33:28Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sivakumarp11](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sivakumarp11/32/99470_2.png) [@sivakumarp11](https://discuss.elastic.co/u/sivakumarp11)
#### Post date: [December 14, 2018, 6:33am UTC](https://discuss.elastic.co/t/elastic-rest-client-connection-pooling/160846/1 "2018-12-14T06:33:28Z")

</div>

It is not clear as to whether connection pool is available for Elastic REST client - **synchronous** call or not ?

1. If yes, please provide sample configuration class.
2. If not,  
2.1 please explain why it is not provided for synchronous calls ?  
2.2 please provide sample config class for asynchronous call

---

<div class="post-metadata">

### Author: ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)
#### Post date: [December 21, 2018, 12:07pm UTC](https://discuss.elastic.co/t/elastic-rest-client-connection-pooling/160846/2 "2018-12-21T12:07:16Z")

</div>

Hi,  
have you seen our REST client docs? You can find them here: [https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html](https://www.elastic.co/guide/en/elasticsearch/client/java-rest/current/index.html) . There are quite some examples in there that should help.

As for your question, I do not understand what you mean by connection pool, could you clarify what you are looking for please?

Cheers  
Luca

---

<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: [January 18, 2019, 12:07pm UTC](https://discuss.elastic.co/t/elastic-rest-client-connection-pooling/160846/3 "2019-01-18T12:07:21Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
