cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <>
Subject Re: Clients, protocols and TSockets
Date Sun, 29 Aug 2010 18:51:01 GMT
You will want each thread to have a connection (include the socket and associated objects),
otherwise the threads will stomp over each other and you will do things like read the response
from the wrong thread.


On 29 Aug 2010, at 18:32, Kevin Irwig wrote:

> Hi,
> performance wise, in a multi-threaded environment, should each Cassandra.Client have
it's own new TBinaryProtocol and TSocket? (I'm using java) Or can many clients be created
with the same protocol object?
> Thanks in advance,
> Kevin.

View raw message