# TransportClient thread safe?

**URL:** <https://discuss.elastic.co/t/transportclient-thread-safe/12366>\
**Category:** Elasticsearch\
**Created:** [June 12, 2013, 12:41am UTC](https://discuss.elastic.co/t/transportclient-thread-safe/12366 "2013-06-12T00:41:24Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vinh](https://avatars.discourse-cdn.com/v4/letter/v/34f0e0/32.png) [@vinh](https://discuss.elastic.co/u/vinh)\
**Post date:** [June 12, 2013, 1:44am UTC](https://discuss.elastic.co/t/transportclient-thread-safe/12366/2 "2013-06-12T01:44:22Z")

</div>

To clarify, I see errors in this type of setup. So just wanted to confirm.

On Jun 11, 2013, at 5:41 PM, vinh [vinh@loggly.com](mailto:vinh@loggly.com) wrote:

> Can one instance of TransportClient be shared across a set of clients threads? For example, if I have several objects which need to index messages to ES, can they share the same TransportClient?

--  
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](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

_[View the full topic](https://discuss.elastic.co/t/transportclient-thread-safe/12366)._
