Re: Clients, protocols and TSockets

2010-08-29 Thread aaron morton
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. Aaron On 29 Aug 2010, at 18:32, Kevin Irwig wrote: > Hi, > > performance wise, in

Clients, protocols and TSockets

2010-08-28 Thread Kevin Irwig
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.