【问题标题】:Which Cassandra driver is best with aiohttp?哪个 Cassandra 驱动程序最适合使用 aiohttp?
【发布时间】:2018-05-18 15:44:45
【问题描述】:

问题是哪个 Cassandra python 驱动程序更适合与 aiohttp 网络框架一起使用。

目前,有两种可能的候选人:

  1. cassandra-driver 来自 DataStax
  2. aiocassandra

问题是,cassandra-driver 似乎更受欢迎并且得到了更多的支持。但另一方面它不支持 asyncio(实验性不稳定实现),而 asyncio 对于运行 aiohttp 网络服务器至关重要。

Aiocassandra 不那么受欢迎,这里的维护+支持是一个问题。

那么 aiocassandra 的性能是否比 cassandra-driver 好得多,就正常运行时间、性能和支持而言,最佳选择是什么?

【问题讨论】:

    标签: python cassandra aiohttp cassandra-driver


    【解决方案1】:

    cassandra-driver 在项目中使用 (cqlsh) 并且 cassandra 的测试是使用它 (dtests) 编写的,因此将始终得到维护、经过良好测试并与所有版本的 Cassandra 保持同步。

    aiocassandra 是 cassandra-driver 的包装器,因此它的性能可能不会有任何不同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-11-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-09-29
      • 2017-11-15
      相关资源
      最近更新 更多