Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection pooling in Netty

Tags:

netty

I'm trying to build a reverse proxy with Netty, and I'd like to keep a pool of open sockets to the backend servers, instead of every incoming socket requiring a new socket from the reverse proxy to a backend server.

Can you do this with Netty? How?

Thanks for any help

like image 896
Eric Bowman - abstracto - Avatar asked Mar 25 '11 13:03

Eric Bowman - abstracto -


1 Answers

Ok, answering my own question, there is a nice example how to do this in the LittleProxy source code. In particular, in HttpRequestHandler.java, follow the usage of endpointsToChannelFutures.

like image 85
Eric Bowman - abstracto - Avatar answered Sep 27 '22 17:09

Eric Bowman - abstracto -