将resque连接到除redis之外的其他键值数据库?

发布于 2024-09-03 12:52:07 字数 357 浏览 3 评论 0原文

我刚刚在此处阅读了一些关于 resque 的内容,以及如何使用 Redis 作为“高级键值存储”为了工作。

您可能知道,您可以在多台计算机上使用 resque 来处理作业:

可以为工作人员提供多个队列(“队列列表”)并在多台机器上运行。事实上,它们可以在任何可以通过网络访问 Redis 服务器的地方运行。

现在我的问题是... resque 是否能够连接到任何其他键值数据库,例如 SimpleDB 或 CouchDB?如果是的话,这还有意义吗?

I just read a little about resque here and how you use redis as a "advanced key-value store" for the jobs.

As you might know you can use resque on multiple machines to process the jobs:

Workers can be given multiple queues (a "queue list") and run on multiple machines. In fact they can be run anywhere with network access to the Redis server.

Now my question is... Is resque able to connect to any other key-value database such as SimpleDB or CouchDB? And if yes, does this even make sense?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

沙与沫 2024-09-10 12:52:08

不,它不能,因为它主要使用Redis专门为handlin队列编写的功能,例如brpopblpush。 CouchDB/SimpleDB 的最终一致性使它们无法成为队列、AMQP 实现(例如 RabbitMQ)的理想候选者,但两者都不能与 Resque 一起使用。

No, it is not able, as it mostly uses Redis' features specifically written for handlin queues, such as brpop and blpush. CouchDB/SimpleDB's eventual consistency keeps them from being ideal candidates for queues, AMQP implementations, such as RabbitMQ would be suited, but neither usable with Resque.

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