# Transport vs Node client

**URL:** <https://discuss.elastic.co/t/transport-vs-node-client/6928>\
**Category:** Elasticsearch\
**Created:** [March 7, 2012, 5:41am UTC](https://discuss.elastic.co/t/transport-vs-node-client/6928 "2012-03-07T05:41:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Waddle](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_waddle/32/2608_2.png) [@Mark\_Waddle](https://discuss.elastic.co/u/Mark_Waddle)\
**Post date:** [March 7, 2012, 5:41am UTC](https://discuss.elastic.co/t/transport-vs-node-client/6928/1 "2012-03-07T05:41:21Z")

</div>

Hello,

I like the performance benefit that a Node client provides, in that it  
avoids double-hops, but I like the quick startup of a Transport client  
because it does not need to perform discovery. Will using  
client.transport.sniff=true on a TransportClient give me the best of both  
worlds?

Thanks,  
Mark

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 7, 2012, 11:34am UTC](https://discuss.elastic.co/t/transport-vs-node-client/6928/2 "2012-03-07T11:34:48Z")

</div>

No, sniff just means it will use the list of nodes you provide the transport client fetch all the other nodes and use as the nodes to round robin between (instead of only the list you provided). Note though, you need to create the NodeClient on application startup, and reuse it.

On Wednesday, March 7, 2012 at 7:41 AM, Mark Waddle wrote:

> Hello,
> 
> I like the performance benefit that a Node client provides, in that it avoids double-hops, but I like the quick startup of a Transport client because it does not need to perform discovery. Will using client.transport.sniff=true on a TransportClient give me the best of both worlds?
> 
> Thanks,  
> Mark

---

<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:** [July 6, 2017, 3:36am UTC](https://discuss.elastic.co/t/transport-vs-node-client/6928/3 "2017-07-06T03:36:54Z")

</div>


