You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@thrift.apache.org by panfei <cn...@gmail.com> on 2012/06/19 12:00:55 UTC

a thrift server performance estimate

Hi all :

I have a API to call  asynchronous method A of  thrift server 1, and A only
calls another  asynchronous method of thrift server 2, I want to know , how
many concurrent requests can be processed in this way.

thanks.

-- 
不学习,不知道

Re: a thrift server performance estimate

Posted by panfei <cn...@gmail.com>.
2012/6/20 Mark Slee <ms...@fb.com>

> Completely dependent on your system configuration and the cost of your RPC
> calls. This question can't really be answered without more info about the
> application.
>
> Some things to consider:
> - How expensive are these calls? Do they use a lot of CPU? Block on
> reading files?
>
the call are light, it just retrieve data from HBase by a key, and then
call another  asynchronous method a remote service.


> - You'll be holding a server socket open during each of these calls - you
> may run into open file descriptor considerations
> - If the calls are asynchronous, do you close the client as soon as
> putting in the request?
>
we close the client as soon as putting in the request, because this call is
 asynchronous


very thanks for your advice, Mark !

>
> Cheers,
> Mark
> ________________________________________
> From: panfei [cnweike@gmail.com]
> Sent: Tuesday, June 19, 2012 3:00 AM
> To: user@thrift.apache.org
> Subject: a thrift server performance estimate
>
> Hi all :
>
> I have a API to call  asynchronous method A of  thrift server 1, and A only
> calls another  asynchronous method of thrift server 2, I want to know , how
> many concurrent requests can be processed in this way.
>
> thanks.
>
> --
> 不学习,不知道
>



-- 
不学习,不知道

RE: a thrift server performance estimate

Posted by Mark Slee <ms...@fb.com>.
Completely dependent on your system configuration and the cost of your RPC calls. This question can't really be answered without more info about the application.

Some things to consider:
- How expensive are these calls? Do they use a lot of CPU? Block on reading files?
- You'll be holding a server socket open during each of these calls - you may run into open file descriptor considerations
- If the calls are asynchronous, do you close the client as soon as putting in the request?

Cheers,
Mark
________________________________________
From: panfei [cnweike@gmail.com]
Sent: Tuesday, June 19, 2012 3:00 AM
To: user@thrift.apache.org
Subject: a thrift server performance estimate

Hi all :

I have a API to call  asynchronous method A of  thrift server 1, and A only
calls another  asynchronous method of thrift server 2, I want to know , how
many concurrent requests can be processed in this way.

thanks.

--
不学习,不知道