thrift-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Slee <ms...@fb.com>
Subject RE: Question about multi client ability on server side
Date Fri, 08 Apr 2011 18:30:09 GMT
Which server implementation are you using? It sounds like you are using the TSimpleServer.
We have a number of threaded implementations available.

~/local/thrift-apache/trunk/lib/cpp/src/server $ls
TNonblockingServer.cpp  TSimpleServer.cpp    TThreadPoolServer.cpp
TNonblockingServer.h    TSimpleServer.h      TThreadPoolServer.h
TServer.cpp             TThreadedServer.cpp
TServer.h               TThreadedServer.h

You probably want to go with a TThreadPoolServer or TThreadedServer. It should be very straightforward
to swap those out for the TSimpleServer, it won't require changing your application implementation
code (though you'll need to ensure that any shared data structures are thread-safe).

Cheers,
mcslee

-----Original Message-----
From: KK [mailto:KartoffelKiffer@gmx.de] 
Sent: Friday, April 08, 2011 10:30 AM
To: user
Subject: Question about multi client ability on server side

Hi Brian,

you mean that I have to implement multi client support for myself?

I think cpp supports threads :) I hope I can use OpenMP in this project!

Mime
View raw message