RabbitMQ Alternative for Local

我只是一个虾纸丫 提交于 2020-02-05 04:00:10

问题


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

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

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?


回答1:


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.

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




回答2:


You can absolutely do that. All you need is to specify via properties which Rabbit instance do you wan to connect to. Here are just a few:

spring.rabbitmq.host
spring.rabbitmq.port
spring.rabbitmq.username
. . .


来源:https://stackoverflow.com/questions/52644505/rabbitmq-alternative-for-local

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