dominioncfg / rabbit-mq-federation-tests

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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://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.


Languages

Language:C# 100.0%