[Dev] [DEV] Thrift connection pooling

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Dev] [DEV] Thrift connection pooling

venura
Hi,

Is there a way to create a connection pool for the thrift connections?

Regards,
Venura

--
Senior Software Engineer

Mobile: +94 71 82 300 20


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] [DEV] Thrift connection pooling

Malith Dhanushka
Hi,

Are you going to create a connection pool for a existing thrift connection or  you need a thrift server with a connection pool ?


On Mon, Nov 11, 2013 at 3:21 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

Is there a way to create a connection pool for the thrift connections?

Regards,
Venura

--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : +94 716 506 693

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] [DEV] Thrift connection pooling

venura
Hi,

What we came across is, when we do a load test on thrift client which is deployed within a webapp, it creates as much as different connections to the server. We need to avoid creating new connections to the server, but take the connections from a connection pool.

If thrift server is capable of executing with a connection pool that's also better. In that way server can manage and treat created connections.

Regards,
Venura


On Tue, Nov 12, 2013 at 11:58 AM, Malith Dhanushka <[hidden email]> wrote:
Hi,

Are you going to create a connection pool for a existing thrift connection or  you need a thrift server with a connection pool ?


On Mon, Nov 11, 2013 at 3:21 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

Is there a way to create a connection pool for the thrift connections?

Regards,
Venura

--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : <a href="tel:%2B94%20716%20506%C2%A0693" value="+94716506693" target="_blank">+94 716 506 693



--
Senior Software Engineer

Mobile: +94 71 82 300 20


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] [DEV] Thrift connection pooling

Malith Dhanushka



On Tue, Nov 12, 2013 at 1:30 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

What we came across is, when we do a load test on thrift client which is deployed within a webapp, it creates as much as different connections to the server. We need to avoid creating new connections to the server, but take the connections from a connection pool.

If thrift server is capable of executing with a connection pool that's also better. In that way server can manage and treat created connections.

Yes.  There are few thrift server implementations and among them TThreadPoolServer fulfills this requirement, where it utilizes a thread pool to serve incoming requests.  Refer this [1] for implementation,


HTH,
Malith

  

Regards,
Venura


On Tue, Nov 12, 2013 at 11:58 AM, Malith Dhanushka <[hidden email]> wrote:
Hi,

Are you going to create a connection pool for a existing thrift connection or  you need a thrift server with a connection pool ?


On Mon, Nov 11, 2013 at 3:21 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

Is there a way to create a connection pool for the thrift connections?

Regards,
Venura

--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : <a href="tel:%2B94%20716%20506%C2%A0693" value="+94716506693" target="_blank">+94 716 506 693



--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : +94 716 506 693

_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev
Reply | Threaded
Open this post in threaded view
|

Re: [Dev] [DEV] Thrift connection pooling

venura
Thanks Malith. I'll check this.

Regards,
Venura


On Tue, Nov 12, 2013 at 5:13 PM, Malith Dhanushka <[hidden email]> wrote:



On Tue, Nov 12, 2013 at 1:30 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

What we came across is, when we do a load test on thrift client which is deployed within a webapp, it creates as much as different connections to the server. We need to avoid creating new connections to the server, but take the connections from a connection pool.

If thrift server is capable of executing with a connection pool that's also better. In that way server can manage and treat created connections.

Yes.  There are few thrift server implementations and among them TThreadPoolServer fulfills this requirement, where it utilizes a thread pool to serve incoming requests.  Refer this [1] for implementation,


HTH,
Malith

  

Regards,
Venura


On Tue, Nov 12, 2013 at 11:58 AM, Malith Dhanushka <[hidden email]> wrote:
Hi,

Are you going to create a connection pool for a existing thrift connection or  you need a thrift server with a connection pool ?


On Mon, Nov 11, 2013 at 3:21 PM, Venura Kahawala <[hidden email]> wrote:
Hi,

Is there a way to create a connection pool for the thrift connections?

Regards,
Venura

--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : <a href="tel:%2B94%20716%20506%C2%A0693" value="+94716506693" target="_blank">+94 716 506 693



--
Senior Software Engineer

Mobile: <a href="tel:%2B94%2071%2082%20300%2020" value="+94718230020" target="_blank">+94 71 82 300 20




--
Malith Dhanushka
Engineer - Data Technologies
WSO2, Inc. : wso2.com
Mobile          : <a href="tel:%2B94%20716%20506%C2%A0693" value="+94716506693" target="_blank">+94 716 506 693



--
Senior Software Engineer

Mobile: +94 71 82 300 20


_______________________________________________
Dev mailing list
[hidden email]
http://wso2.org/cgi-bin/mailman/listinfo/dev