apolloFER / amqp-republisher

Sometimes you want to take a queue of messages and just republish them all

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AMQP Republisher

Simple app to read messages off of a queue and republish them intact to the original exchange using the original routing key.

Why not use shovel? Because shovel requires specifying a routing key and doesn't provide a way to just use the existing routing key.

Usage

Republish messages

pip install -r requirements.txt

./republish.py --broker-url amqp://guest:guest@localhost/main --queue unrouted.messages

Migrate messages between clusters

pip install -r requirements.txt

./migrate.py --from-broker-url amqp://guest:guest@127.0.0.1/main --to-broker-url amqp://guest:guest@127.0.0.2/main --from-queue queuetodrain

About

Sometimes you want to take a queue of messages and just republish them all


Languages

Language:Python 100.0%