Multi-Region message replication with Amazon MQ for RabbitMQ

Amazon MQ for RabbitMQ Region 1 → Amazon MQ for RabbitMQ Region 2

Replicate messages from one Region to another in Amazon MQ for RabbitMQ

This pattern provides an example on how to implement multi-region message replication with Amazon MQ for RabbitMQ.
This solution demonstrates how to configure Amazon MQ for RabbitMQ leveraging the federation plugin across regions.
You will learn how federation of exchanges enable asynchronous data replication between two RabbitMQ clusters to achieve multi-region architecture.
This code base is deployed using Terraform to simplify the Rabbit MQ configuration.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/amazonmq-rabbitmq-msg-replication

Deploy

terraform initterraform apply


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: terraform destroy.

Created by:

Daniel Fargano

Daniel Fargano

Daniel Fargano is a Sr. Solutions Architect at AWS. Dan is based in Chicago primarily supporting customers in the financial vertical but also supports customers across all sectors through his passion for serverless. He enjoys building new solutions and sharing new discoveries with customers.