【发布时间】:2020-07-10 02:04:57
【问题描述】:
我正在尝试确定是否使用 PostGres 或 Cassandra 数据存储。最初将通过以下方式将数据插入到这个新存储中: 1.每天插入100MB的批处理。 2. 稍后以每秒 20 次操作的速度现有批处理 + CRUD 操作。
通过阅读文章和与其他人的各种对话,我确定:
**Cassandra**
Type: NoSql
Read Speed: Fast
Write Speed: Slow
Storage: Distributed Cluster
Scaling: Horizontal
**PostGres**
Type: Relational
Storage: Single Instance
Scaling: Horizontal
我一直在阅读的一些资源:
https://www.quora.com/How-do-you-compare-Postgres-to-Cassandra-for-big-data-application
https://www.quora.com/How-do-you-approach-choosing-a-database-architecture-and-design
https://www.thegeekstuff.com/2014/01/sql-vs-nosql-db/?utm_source=tuicool
在做出决定之前还应考虑哪些其他因素?我是否应该在决策过程中包含其他数据点,例如确定从表中读取、写入、更新、删除的预期数量?
我可以使用 PostGres,然后在其他时间迁移到 Cassandra,但更愿意避免数据库迁移过程的开销。
【问题讨论】:
标签: database postgresql cassandra architecture nosql