gpt4 book ai didi

ruby-on-rails - 将resque连接到其他键值数据库而不是redis?

转载 作者:数据小太阳 更新时间:2023-10-29 08:06:24 24 4
gpt4 key购买 nike

我刚刚阅读了一些关于 resque here 的内容以及如何将 Redis 用作作业的“高级键值存储”。

正如您可能知道的,您可以在多台机器上使用 resque 来处理作业:

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.

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

最佳答案

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

关于ruby-on-rails - 将resque连接到其他键值数据库而不是redis?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2932724/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com