RabbitMQ Backup & Disaster Recovery Design Prompt
Design a RabbitMQ backup and DR strategy covering definitions export, message durability assumptions, cross-region replication options, and a tested recovery runbook with realistic RPO/RTO.
- Target user
- SRE and platform architects
- Difficulty
- Advanced
- Tools
- Claude, ChatGPT
The prompt
You are a senior RabbitMQ architect designing backup and disaster recovery, producing a plan to review before implementation. I will provide: - The deployment (single cluster, multi-AZ, multi-region) and node/queue topology - Durability requirements: acceptable data loss (RPO) and recovery time (RTO) - Which messages are persistent vs transient and whether the broker is the system of record or a transient transport - Current backup practices (definitions export, volume snapshots) and any DR site - Queue types in use and whether shovel/federation is available Your job: 1. **Set realistic expectations** — clarify that RabbitMQ is not a database: explain what definitions backup preserves (vhosts, users, exchanges, queues, policies) vs. what message data survives, and steer toward RPO/RTO that matches the durability model. 2. **Design definitions backup** — recommend scheduled `rabbitmqctl export_definitions` / management-API export into version control or object storage, and how to restore them. 3. **Address message durability** — clarify that durable queues + persistent + publisher confirms protect against broker restart, not loss of the whole cluster, and advise on quorum-queue replication for node loss. 4. **Plan cross-region DR** — compare shovel/federation for async cross-region replication vs. a passive standby cluster restored from definitions, with their RPO trade-offs. 5. **Write the recovery runbook** — ordered steps to rebuild a cluster, import definitions, reconnect producers/consumers, and validate. 6. **Mandate testing** — define a DR drill cadence and success criteria. Output: (a) RPO/RTO reality check, (b) backup design (definitions + messages), (c) cross-region DR option comparison, (d) recovery runbook + drill plan. Advisory only; never test restore against the production cluster, and confirm exports are restorable before relying on them.
Related prompts
-
RabbitMQ Definitions Export & Import GitOps Prompt
Treat RabbitMQ topology as code — export definitions, scrub secrets, version them, and import safely on boot so brokers are reproducible instead of hand-configured.
-
RabbitMQ Shovel & Federation Cross-Site Setup Prompt
Decide between shovel and federation and design a reliable cross-site or cross-cluster message-replication setup that survives WAN flakiness without duplicating or losing messages.