pythoncassandraaiohttpcassandra-driver

Which Cassandra Python driver works with aiohttp?


The question is which Cassandra Python driver is better to use with aiohttp web framework.

Currently, there are two possible candidates:

  1. cassandra-driver by DataStax
  2. aiocassandra

The thing is, cassandra-driver seems to be more popular and has more support. But on the other side it does not support asyncio (experimental unstable implementation), while asyncio is critical for running aiohttp web server.

aiocassandra is not as popular, and maintanance+support is questionable.

So, does aiocassandra perform way better than cassandra-driver, and which should we choose in terms of uptime and performance and support?


Solution

  • cassandra-driver is used in the project (cqlsh) and the tests for cassandra are written using it (dtests) so will always be maintained, well tested and up to date with all versions of Cassandra.

    aiocassandra is a wrapper around cassandra-driver so its performance probably wont be any different.