# Writing Transport plugins for ES

**URL:** <https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522>\
**Category:** Elasticsearch\
**Created:** [June 23, 2013, 2:02am UTC](https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522 "2013-06-23T02:02:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cristian\_Vergara](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@Cristian\_Vergara](https://discuss.elastic.co/u/Cristian_Vergara)\
**Post date:** [June 23, 2013, 2:02am UTC](https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522/1 "2013-06-23T02:02:16Z")

</div>

Is there any documentation on writing new transports for ES on the master  
branch?

I see there's a Websockets transport for 0.20. I want to port it to 1.0.

-Cris

--  
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).

---

<div class="post-metadata">

**Author:** ![jprante](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jprante/32/44941_2.png) [@jprante](https://discuss.elastic.co/u/jprante)\
**Post date:** [June 23, 2013, 8:28pm UTC](https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522/2 "2013-06-23T20:28:35Z")

</div>

I will start working on migrating my (incomplete) websocket transport  
plugin to Netty 4.0.0 (currently at 4.0.0.CR6) and ES 0.90+ (I hope that  
ES 1.0 will come soon)

Sereval ugly hacks are required, the best method I found out is to use  
an additional Netty dependency and not the ES one - I wish it could be  
easier because different Netty versions may not interact well. There is  
not much documentation. I started with the Netty websocket examples,  
then I experimented with a tiny HTTP ES plugin to learn more about what  
ES REST API can do according to streaming responses, and finally plugged  
the Netty implementation of websockets into plugin code.

Jörg

Am 23.06.13 04:02, schrieb Cristian Vergara:

> Is there any documentation on writing new transports for ES on the  
> master branch?
> 
> I see there's a Websockets transport for 0.20. I want to port it to 1.0.
> 
> ## -Cris
> 
> 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).

--  
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).

---

<div class="post-metadata">

**Author:** ![Cristian\_Vergara](https://avatars.discourse-cdn.com/v4/letter/c/e9bcb4/32.png) [@Cristian\_Vergara](https://discuss.elastic.co/u/Cristian_Vergara)\
**Post date:** [June 23, 2013, 9:42pm UTC](https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522/3 "2013-06-23T21:42:46Z")

</div>

Yes, I've been digging into the source for netty dependencies in  
elasticsearch. It looks like the HTTP module in ES is a module much like  
you'd load via a plugin (with lifecycle callbacks, actions, etc).

If you're willing to work on the plugin front, I'll work on the porting  
front 🙂

-Cris

On Sun, Jun 23, 2013 at 4:28 PM, Jörg Prante [joergprante@gmail.com](mailto:joergprante@gmail.com) wrote:

> I will start working on migrating my (incomplete) websocket transport  
> plugin to Netty 4.0.0 (currently at 4.0.0.CR6) and ES 0.90+ (I hope that ES  
> 1.0 will come soon)
> 
> Sereval ugly hacks are required, the best method I found out is to use an  
> additional Netty dependency and not the ES one - I wish it could be easier  
> because different Netty versions may not interact well. There is not much  
> documentation. I started with the Netty websocket examples, then I  
> experimented with a tiny HTTP ES plugin to learn more about what ES REST  
> API can do according to streaming responses, and finally plugged the Netty  
> implementation of websockets into plugin code.
> 
> Jörg
> 
> Am 23.06.13 04:02, schrieb Cristian Vergara:
> 
> > Is there any documentation on writing new transports for ES on the master  
> > branch?
> > 
> > I see there's a Websockets transport for 0.20. I want to port it to 1.0.
> > 
> > ## -Cris
> > 
> > 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](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> > .
> > 
> > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > .
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit [https://groups.google.com/d/](https://groups.google.com/d/)\*\*  
> topic/elasticsearch/\*\*qJrPz89Uttk/unsubscribe[https://groups.google.com/d/topic/elasticsearch/qJrPz89Uttk/unsubscribe](https://groups.google.com/d/topic/elasticsearch/qJrPz89Uttk/unsubscribe)  
> .  
> To unsubscribe from this group and all its topics, send an email to  
> elasticsearch+unsubscribe@\*\*[googlegroups.com](http://googlegroups.com)[elasticsearch%2Bunsubscribe@googlegroups.com](mailto:elasticsearch%2Bunsubscribe@googlegroups.com)  
> .  
> For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> .

--  
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).

---

<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, 2:29am UTC](https://discuss.elastic.co/t/writing-transport-plugins-for-es/12522/4 "2017-07-06T02:29:51Z")

</div>


