NOTE: this example was written using an older version of the cassandra-driver (pre-3.0). It requires some updates to be used with 3.0+.
Example code accompanying a blog post on driver multiprocessing.
Each script is self-contained for easy side-by-side comparison. To run:
ccm create -v 2.1.6 -n 1 -s cassandra216x1 single_process_concurrent.py <iterations> multiprocess_execute.py <iterations> <# pool processes> multiprocess_concurrent.py <iterations> <# pool processes>