Kumar Saras
Kumar Saras

Reputation: 225

Cassandra concurrent requests

I am trying to make concurrent requests to cassandra database on a single thread using execute_async() method in python code. According to the documentation it can handle at least 100 queries on a single connection but my throughput starts falling even if increase the concurrency more than 4. Can anyone tell me any reason for this problem?

Upvotes: 0

Views: 951

Answers (1)

BeepBoop
BeepBoop

Reputation: 1312

Sounds like you're trying to reimplement the async callback pattern.

Use the cassandra.concurrent.execute_concurrent() to get the performance of the async callback chaining (read here)

Upvotes: 1

Related Questions