关于Heroku的ZeroMQ [英] ZeroMQ on Heroku
问题描述
为什么Heroku不存在?
我想使用Akka和分布式队列系统让角色在不同的dynos上进行通信。 RabbitMQ似乎并不是使用Akka的最佳选择,因为需要很多技巧才能与演员无缝协作,而不必关心底层队列。
然而,最好的选择似乎是,但与RabbitMQ: akka-amqp-mailbox 。您认为还有哪些其他选项可以在Heroku上使用Akka提供无缝底层队列系统?
谢谢!
您可以使用官方Heroku APT buildpack安装 zmq 添加到您的Heroku应用程序中。
步骤:
$ b 1)添加 https://github.com/heroku/heroku-buildpack-apt 作为buildpack。确保将它添加到构建包之前/之前,例如heroku / nodejs可以满足依赖性。
$ b 2)添加
Aptfile $ c
libzmq3-dbg
libzmq3-dev $ b $ c $文件到您的回购的根目录中: $ b libzmq3
<3>部署
Why doesn't it exist on Heroku?
I want to use Akka and a distributed queues system for actors to communicate on different dynos. RabbitMQ doesn't seem to be the best option using Akka, because a lot of tricks are needed to seamlessly work with actors without concerning about the underlying queues.
Nevertheless, the best option seems to be Durable Mailboxes but with RabbitMQ: akka-amqp-mailbox. I still have to set it up first though.
What other options do you consider that provide a seamless underlying queues system on Heroku with Akka?
Thanks!
解决方案 You can use the official Heroku APT buildpack to install zmq to your Heroku app.
Steps:
1) Add https://github.com/heroku/heroku-buildpack-apt as a buildpack. Make sure it is added above/before build packs such as heroku/nodejs so dependencies can be met.
2) Add Aptfile
file into the root of your repo with this content:
libzmq3-dbg
libzmq3-dev
libzmq3
3) Deploy
这篇关于关于Heroku的ZeroMQ的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!