简体   繁体   English

从C#app到CRUD Cassandra集群的最佳方法是什么?

[英]What is the best way to CRUD Cassandra cluster from C# app

I've been looking around the net for a while, what is the best way to CRUD (create, remove, update, delete) cassandra cluster/keyspaces/column families & columns in general? 我一直在网上寻找一段时间,一般来说,什么是CRUD(创建,删除,更新,删除)cassandra集群/密钥空间/列系列和列的最佳方法是什么?

There are many frameworks & drivers & api (thrift, hector, datastax driver, cassandra sharp driver, aquiles, fluentcassandra...) and I'm really confused on which one to choose. 有很多框架和驱动程序和api(节俭,hector,datastax驱动程序,cassandra sharp驱动程序,aquiles,fluentcassandra ...),我真的很困惑选择哪一个。

Can anybody give a small resume/overview on the best way to do such a thing ? 任何人都可以提供一份关于做这种事情的最佳方式的小简历/概述吗?

Thanks in advance 提前致谢

There is no best way in general, it all depends on what you want to do. 一般来说没有最好的方法,这完全取决于你想做什么。

I would suggest the datastax .NET driver because it is getting developed as we speak and if you see something you dont like or want to request a feature you can do so through the mailing list and the even better reason, there is an IRC channel (look at the driver's github) where you can ask questions if you need some help. 我建议使用datastax .NET驱动程序,因为它正在我们说话时开发,如果你看到一些你不喜欢或想要请求功能的东西,你可以通过邮件列表这样做,甚至更好的理由,有一个IRC频道(看看司机的github)如果你需要帮助,你可以在那里提问。

As far as CRUD goes, you can use CQL3 queries which are similar to SQL, and the driver even has some LINQ support. 就CRUD而言,您可以使用类似于SQL的CQL3查询,并且驱动程序甚至具有一些LINQ支持。

Have you had a look at Cassandra .Net driver and CQL driver (Aug 2012) 您是否看过Cassandra .Net驱动程序和CQL驱动程序(2012年8月)

seems like FluentCassandra is pretty good. 看起来像FluentCassandra非常好。 It has Linq2CQL support, and after getting to know Linq2Sql few years ago, i don't really like to write too many SqlCommands anymore. 它有Linq2CQL支持,几年前了解了Linq2Sql后,我真的不想再编写太多的SqlCommands了。

There are different layers, the highest level drivers are abstractions of the Thrift layer (easier to use), you could also use directly the Thrift protocol (you have more control, but it is more complex). 有不同的层,最高级别的驱动程序是Thrift层的抽象(更容易使用),您也可以直接使用Thrift协议(您有更多的控制,但它更复杂)。

I would recommend you the driver from Datastax, they make the official support of Cassandra and they really take care of it. 我会向你推荐Datastax的驱动程序,他们得到Cassandra的官方支持,他们真的会照顾它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在C#中将数据导入Cassandra Cluster的最佳方法 - Best way to import data into Cassandra Cluster in c# 在两者都运行时将信息从C#应用程序传递到C ++应用程序的最佳方法是什么? - What is the best way to pass information from a C# app to a C++ app while both are running? 将宽行从Cassandra加载到C#的最快方法是什么? - What is the fastest way to load a wide row from Cassandra to C#? 将一行“数据”从一个C#控制台应用程序传递到另一个C#控制台应用程序的最佳方法是什么? - What's the best way to pass a “row of data” from one C# console app to another C# console app? 从MVC3应用程序序列化,返回和使用复杂的C#对象的最佳方法是什么? - What is the best way to serialize, return and consume complex C# object from an MVC3 app? 从C#Datastax驱动程序关闭Cassandra群集时出错 - Error while shutdown cassandra cluster from c# datastax driver 在C#中,从字符串中解析出这个值的最佳方法是什么? - In C#, what is the best way to parse out this value from a string? 从c#批量数据库插入的最佳方法是什么? - What’s the best way to bulk database inserts from c#? 从 C# 生成 json 的最佳方法是什么 - what is the best way to generate json from C# 从c#处理到MySql的Connections的最佳方法是什么? - What is the best way to handle the Connections to MySql from c#
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM