Thrift client-server multiple roles

Posted by dexter on Stack Overflow See other posts from Stack Overflow or by dexter
Published on 2010-03-25T19:03:53Z Indexed on 2010/03/26 4:13 UTC
Read the original article Hit count: 674

Filed under:
|
|
|

Hi,

this is my first question, so sorry if the form is wrong!

I'm trying to make thrift server (python) and client (c++). However I need to exchange messages in both direction. Client should register (call server's function and wait), and server should listen on same port for N (N-> 100k) incoming connections (clients). After some conditions are satisfied, server needs to call functions on each client and collect results and interpret them.

I'm little confused, and first questions is "can this be done in Thrift"? Second question is related to mechanism that will allow me bidirectional communication. I guess that I will need two services. One with client's functions other with server's. But I'm confused with calling code. I understand one way communication (calling functions from server), but with calling functions from client side I have a problem.

Any suggestions???

Thanks!

© Stack Overflow or respective owner

Related posts about thrift

Related posts about python