Skip to content

Reference application using two applications connected to different RabbitMq Services and communicating through rabbit's federation plugin.

Notifications You must be signed in to change notification settings

dominioncfg/rabbit-mq-federation-tests

Repository files navigation

Rabbit Mq Federation Tests

Reference application using two applications connected to different RabbitMq Services and communicating through rabbit's federation plugin.

Steps to execute

  1. Run Rabbit MQ:
docker-compose -p RabbitMq.Federation.Tests up -d
  1. Connect to the second Docker container
docker container exec -it federation-datacenter-2 bin/bash
  1. Inside the container create the Federation Upstream:
rabbitmqctl set_parameter federation-upstream datacenter1 \
'{"uri":"amqp:https://rabbitmq-datacenter1","expires":3600000}'
  1. Inside the container create the Federation Policy:
rabbitmqctl set_policy --apply-to exchanges outbox-federation "outbound$" '{"federation-upstream-set":"all"}'
  1. Run the application with Datacenter 1 Configuration in VS (launchSettings.json) to produce messages and with Datacenter 2 to consume them.

About

Reference application using two applications connected to different RabbitMq Services and communicating through rabbit's federation plugin.

Topics

Resources

Stars

Watchers

Forks

Languages