这是我的第一个问题,如果形式错的话,那是令人不安的。
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.
任何建议?
感谢!