cassandra-client-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher J. Bottaro" <cjbott...@academicworks.com>
Subject Threadsafety of Ruby client?
Date Wed, 18 Feb 2015 16:57:17 GMT
Is the Ruby client threadsafe?  For example...

session = Cassandra.cluster.connect
Thread.new{ session.execute("select * from ks1.table1") }
Thread.new{ session.execute("select * from ks2.table2") }

Notice multiple threads accessing the same session object, and also notice
different keyspaces being queried in the CQL.

Will that code work?  Thank you for the help.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message