ZeroMQ on Heroku

偶尔善良 提交于 2019-12-07 12:35:18

问题


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!


回答1:


You can use Heroku Vulcan to build and run it yourself. This is what I do whenever I run into something that Heroku doesn't support OOTB. And, "why doesn't it exist"? Because you haven't built it yet! ;-) Good luck.




回答2:


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



来源:https://stackoverflow.com/questions/16389265/zeromq-on-heroku

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!