我应该使用什么库从 Scala 访问 Riak?

发布于 2024-10-28 21:15:54 字数 530 浏览 4 评论 0原文

对于一个项目,我同时使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

记忆里有你的影子 2024-11-04 21:15:54

Stackmob 最近开源了 Scalariak

Scaliak 是高级 Riak Java 客户端的 scala 化版本
功能上的转变。它目前正在生产中使用
StackMob。

与原始 High-Level 相比,Scaliak 目前的功能不完整
Riak Java 客户端。目前支持的主要是feature
正在生产中使用(已经实现了一些功能
随后未使用)。

还有 Raiku 声明它是异步的。

Stackmob recently opensourced Scalariak.

Scaliak is a scala-ified version of the High-Level Riak Java Client w/
a Functional Twist. It is currently being used in production at
StackMob.

Scaliak is currently feature incomplete vs. the original High-Level
Riak Java Client. What is currently supported are mostly features
being used in production (there have been a few features implemented
and subsequently not used).

There is also Raiku which states that it is async.

以可爱出名 2024-11-04 21:15:54

我在同一个桶中 - 请原谅这个不好的双关语 - 尽管我有一些使用 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.

埋葬我深情 2024-11-04 21:15:54

我是另一个 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文