RabbitMQ & AMQP (50 Qs)•Part 3: Advanced Internals, Scale & Production Architecture (Senior / Lead)
RabbitMQ Shovel Plugin: Static vs Dynamic shovel definitions and WAN cross-cluster migration.
senior LevelSystem DesignRabbitMQMicroservices
In Simple Words: A Shovel is an automated in-broker worker that continuously consumes messages from a source queue and publishes them to a destination exchange or queue (even across different clusters or clouds):
- Static Shovels: Defined in
rabbitmq.confconfiguration file. - Dynamic Shovels: Configured at runtime via the HTTP Management API or
rabbitmqctlwithout restarting the broker. - Zero-Downtime Cluster Migration: Deploy Shovels to drain lingering messages from an old RabbitMQ 3.8 cluster into a newly provisioned RabbitMQ 3.13 cluster while producers switch traffic.