RabbitMQ 本地替代方案 [英] RabbitMQ Alternative for Local

查看:50
本文介绍了RabbitMQ 本地替代方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在提供新的软件设计,并将使用 RabbitMQ 作为消息总线以及 Spring Cloud Stream.

I am providing new software design and going to use RabbitMQ as messaging bus along with Spring Cloud Stream.

其中一个问题是开发者无法在本地机器上安装 Erlang 或 RabbitMQ.

One of the issues is that the developers cannot install Erlang or RabbitMQ on the local machine.

Spring Cloud 流不支持 ActiveMQ.无论如何,我可以在本地机器上安装队列并在 unix 环境中使用 RabbitMQ 时使用它吗?

Spring Cloud stream do not support ActiveMQ. Is there anyway I can install queue on local machine and use that while use RabbitMQ in the unix environment?

推荐答案

一个不错的选择是在本地机器上的 docker 容器中运行 rabbitmq.您可以使用rabbitmq 图像已经在dockerhub 上发布,如果您愿意,您甚至可以开始它会使用 fabric8 maven 插件 在您的集成测试中自动进行.我们已经 在 Activiti 项目中这样做,也使用 spring 云流.您可以在 maven 配置文件中运行它,以便您只在有 docker 可用的机器上激活它.

A good option is run rabbitmq in a docker container on the local machine. You could use a rabbitmq image already published on dockerhub and if you want to you could even start it automatically in your integration tests using the fabric8 maven plugin. We've been doing that on the Activiti project, also with spring cloud streams. You could run this in a maven profile so that you only activate it on machines which have docker available.

对于测试 apache qpid 可能是一种选择.目前可用的 Spring Cloud 流示例并不多,但有 https://github.com/spring-guides/gs-messaging-rabbitmq/pull/12

For tests apache qpid might be an option. There aren't many examples with spring cloud streams available right now but there is https://github.com/spring-guides/gs-messaging-rabbitmq/pull/12

这篇关于RabbitMQ 本地替代方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆