简体   繁体   English

是否有任何线程安全的cassandra C ++客户端库?

[英]Is there any cassandra C++ client library which is thread safe?

I am looking for a client library which is thread safe . 我正在寻找一个线程安全的客户端库。 If you can provide me with an example for multithread insertion it will help me a lot ! 如果您可以为我提供多线程插入的示例,它将对我有很大帮助!

Many thanks. 非常感谢。

I don't know if you are still interested... anyway, the standard c++ client library at the moment is cpp-driver . 我不知道您是否仍然感兴趣...无论如何,目前标准的c ++客户端库是cpp-driver

It is quite straightforward to use, even though still missing many functionalities of its java-python counterpart. 即使仍然缺少其Java-python对应功能的许多功能,它的使用也非常简单。

Doing multi-thread insertions is as easy as sharing the "session" instance amongst threads. 进行多线程插入就像在线程之间共享“会话”实例一样容易。 You will know what I mean if you just look at the simple demo app provided with the driver. 如果您仅看一下驱动程序附带的简单演示应用程序,您就会知道我的意思。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM