# Java REST Client and Multithreading

**URL:** <https://discuss.elastic.co/t/java-rest-client-and-multithreading/123298>\
**Category:** Elasticsearch\
**Created:** [March 9, 2018, 3:59pm UTC](https://discuss.elastic.co/t/java-rest-client-and-multithreading/123298 "2018-03-09T15:59:14Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mc1392](https://avatars.discourse-cdn.com/v4/letter/m/57b2e6/32.png) [@mc1392](https://discuss.elastic.co/u/mc1392)\
**Post date:** [March 9, 2018, 3:59pm UTC](https://discuss.elastic.co/t/java-rest-client-and-multithreading/123298/1 "2018-03-09T15:59:14Z")

</div>

Is the Java REST Client Thread safe?

Can I instantiate a single client object and share among the threads?  
Or should I open separate connections in each thread?

---

_[View the full topic](https://discuss.elastic.co/t/java-rest-client-and-multithreading/123298)._
