问题
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