Nosql 卡桑德拉适合存储文件吗?

Nosql 卡桑德拉适合存储文件吗?,nosql,cassandra,data-storage,file-storage,Nosql,Cassandra,Data Storage,File Storage,我正在开发一个php平台,它将大量使用图像、文档和我脑海中出现的任何文件格式,所以我想知道Cassandra是否适合我的需要 如果没有,你能告诉我如何存储文件吗?我希望继续使用cassandra,因为它是容错的,并且在节点之间使用自动复制 谢谢您的帮助。您应该可以使用10MB的文件。事实上,如果我没弄错的话,DataStax Brisk在Cassandra之上放了一个文件系统: (我与他们没有任何关联-这不是广告)来自 因此,如果您的文件小于10MB,您应该没问题,只需确保限制文件大小,或将大型

我正在开发一个php平台,它将大量使用图像、文档和我脑海中出现的任何文件格式,所以我想知道Cassandra是否适合我的需要

如果没有,你能告诉我如何存储文件吗?我希望继续使用cassandra,因为它是容错的,并且在节点之间使用自动复制


谢谢您的帮助。

您应该可以使用10MB的文件。事实上,如果我没弄错的话,DataStax Brisk在Cassandra之上放了一个文件系统:

(我与他们没有任何关联-这不是广告)

来自


因此,如果您的文件小于10MB,您应该没问题,只需确保限制文件大小,或将大型文件分成块。

作为新信息,Netflix为其cassandra客户端提供实用程序,用于将文件存储为已处理对象存储。可以找到描述和示例。使用astyanax编写一些测试并将Cassandra作为文件存储进行评估是一个很好的起点。

不要认为文件会超过10 MBFWIW:Thrift API正在被弃用。但“大文件块”规则似乎仍然存在。有一篇文章是关于沃尔玛使用Cassandra存储大量图像文件的,其策略相同:。
Cassandra's public API is based on Thrift, which offers no streaming abilities 
any value written or fetched has to fit in memory. This is inherent to Thrift's 
design and is therefore unlikely to change. So adding large object support to
Cassandra would need a special API that manually split the large objects up 
into pieces. A potential approach is described in http://issues.apache.org/jira/browse/CASSANDRA-265.    
As a workaround in the meantime, you can manually split files into chunks of whatever 
size you are comfortable with -- at least one person is using 64MB -- and making a file correspond 
to a row, with the chunks as column values.