我应该使用什么库从 Scala 访问 Riak?
对于一个项目,我同时使用 Scala 和 Riak(这两种东西我以前从未使用过;))。
谷歌搜索似乎建议使用 Riakki。然而,似乎该特定库自 2009 年以来就没有维护过,甚至无法在我的系统上编译。 GitHub 上有一个更新的分支,它似乎适用于更新的 Scala 版本。但 Riakki 似乎依赖于自去年 2 月以来已被弃用的 Jiak。
似乎唯一合理的选择是使用 Scala 的官方 Riak Java 库。这当然是可能的,但我想在学习 Scala 语言时以 Scala 方式做事。必须与 Java 风格的 API 交互可能会破坏一些乐趣。编写我自己的包装器听起来工作量太大了。
tl;dr:我想使用 Scala 中的 Riak。其他人用什么?
编辑:刚刚找到 Ryu(无法链接到它 - 对于新用户来说,每个问题的超链接数量受到烦人的限制)。不过看起来还不是那么成熟。
For a project I'm using both Scala and Riak (two things I have never worked with before ;) ).
Google searches seem to suggest using Riakki. However, it seems like that particular library hasn't been maintained since 2009 and doesn't even compile on my system. There is a more up-to-date fork on GitHub that does seem to work with more recent Scala versions. But Riakki seems to depend on Jiak, which has been deprecated since february of last year.
Seems like the only reasonable choice would be to use the official Riak Java-library from Scala. That's certainly possible, but I'd like to do things the Scala-way as I'm trying to learn the language. Having to interface with a Java-style API might ruin a bit of the fun. Writing my own wrapper sounds like it will be too much work.
tl;dr: I want to use Riak from Scala. What are other people using?
edit: just found Ryu (can't link to it - annoying limit on amount of hyperlinks per question for new users). Doesn't seem all that mature though.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Stackmob 最近开源了 Scalariak。
还有 Raiku 声明它是异步的。
Stackmob recently opensourced Scalariak.
There is also Raiku which states that it is async.
我在同一个桶中 - 请原谅这个不好的双关语 - 尽管我有一些使用 Scala 的经验。我正在考虑使用官方 Java 客户端。
当您努力学习陡峭的曲线时,您不需要处理不完整且可能不稳定的 API。根据我的经验,使用 Scala 中的 Java API 的痛苦是最小的。
我认为玩我们的新 Raik 玩具会带来足够的乐趣,我们会忘记 Java API 给我们带来的任何非 Scala 的缺陷。一切顺利。
I'm in the same bucket - excuse the bad pun - although I have some experience with Scala. I'm thinking of using the official Java client.
When you are toiling up a steep learning curve, you don't need to be dealing with incomplete and potentially wobbly API's. In my experience, using Java API's from Scala is minimally painful.
I think there'll be enough delight in playing with our new Raik toy that we'll forget about whatever un-Scala-ish foibles the Java API inflicts upon us. All the best.
我是另一个 Scala Riak 客户端的作者,简称为 riak-scala-client。它基于 Akka 和 Spray,它不是构建在现有的 Java 客户端之上,最重要的是它是完全非阻塞的。
请访问 http://riak.scalapenos.com 查看并告诉我您的想法。
I'm the author of yet another Scala Riak client, simply called riak-scala-client. It is based on Akka and Spray, it is not built on top of the existing Java client, and most importantly it is completely non-blocking.
Check it out at http://riak.scalapenos.com and let me know what you think.