🐇

AMQP Exchange Configuration Simulator — Map Routing Keys and Queue Bindings

Generate RabbitMQ channel declaration code for Node.js (amqplib) and Python (pika). Select an exchange type, configure durability and options, add queue bindings with routing keys, and instantly get production-ready assertExchange and bindQueue calls. Supports all four exchange types: direct, fanout, topic, and headers. Four presets cover the most common RabbitMQ patterns. Free and runs entirely in your browser.

API ToolsAPI & Backend
Loading tool...

How to Use AMQP Exchange Configuration Simulator — Map Routing Keys and Queue Bindings

How to Use the AMQP Exchange Config Builder:

  1. Load a Preset (Optional): Click any preset to pre-fill all fields with a common RabbitMQ pattern. Task queue shows a direct exchange routing messages to two queues by routing key. Pub/Sub broadcast shows a fanout exchange delivering to all bound queues simultaneously. Log routing demonstrates a topic exchange with wildcard patterns. Dead letter shows an internal direct exchange for failed messages. All presets are editable after loading.

  2. Enter an Exchange Name: Type the name of the exchange to declare. Exchange names are arbitrary strings — common conventions use lowercase with hyphens or dots (tasks, payments.events, user.notifications). Spaces are not allowed.

  3. Select the Exchange Type: Choose from four types. Direct routes messages to queues whose binding key exactly matches the message routing key — ideal for task queues and targeted dispatch. Fanout ignores routing keys entirely and broadcasts every message to all bound queues — ideal for pub/sub and fan-out notification systems. Topic routes by routing key pattern using * (matches exactly one word) and # (matches zero or more words) — ideal for event-driven log routing and multi-tenant systems. Headers routes based on message header attributes instead of routing key — useful when routing logic depends on message metadata.

  4. Set Exchange Options: Durable means the exchange survives a broker restart — use this for production exchanges. Auto-delete removes the exchange automatically when the last queue unbinds from it — useful for temporary or session-scoped exchanges. Internal means the exchange can only receive messages forwarded from other exchanges, not from publishers directly — used in exchange-to-exchange routing and dead-letter configurations.

  5. Add Queue Bindings: Each binding declares a queue and binds it to the exchange. Enter the queue name and routing key for each binding. For fanout exchanges, the routing key is ignored and left blank automatically. For topic exchanges, use * to match a single word segment and # to match zero or more segments. Queue options: Durable means the queue survives a broker restart. Exclusive means the queue is tied to the connection that declared it and deleted when the connection closes. Auto-delete removes the queue when the last consumer disconnects. Click Add to add up to five bindings.

  6. Choose a Language: Toggle between Node.js and Python to switch the output language. The Node.js output uses amqplib with async/await. The Python output uses pika's BlockingConnection API.

  7. Copy and Use the Code: Click Copy to copy the full setup function to the clipboard. Paste it into your project and replace the amqp://localhost connection string with your actual broker URL. The generated code declares the exchange and all bound queues — run it once during application startup or as a separate setup script.

Common Use Cases:

  • New RabbitMQ integration: Scaffold the exchange and queue declarations for a new service without writing boilerplate from memory.
  • Architecture documentation: Use the presets as visual references to compare exchange types when planning a message-driven system.
  • Multi-language teams: Generate the same topology in both Node.js and Python to ensure both services declare identical exchanges and queues.
  • Dead letter exchange setup: Use the Dead letter preset as a starting point for configuring DLX routing in an existing queue topology.
  • Topic routing design: Test routing key patterns in the topic preset to verify that * and # wildcards match the queue you expect before deploying.

Tips and Best Practices:

  • Always declare exchanges and queues as durable in production. Non-durable exchanges and queues are lost on broker restart and can cause message loss.
  • Declare the same exchange from both producer and consumer code. RabbitMQ is idempotent for declarations with matching parameters, so duplicate declarations are safe.
  • For topic exchanges, use a consistent dot-separated routing key convention: service.entity.event (e.g., payments.invoice.created). This makes wildcard patterns predictable.
  • An exclusive queue is deleted when its connection closes — use it only for temporary reply queues in request-reply (RPC) patterns.
  • The internal option is for exchange-to-exchange routing. If you need a dead-letter exchange that publishers cannot accidentally send to, mark it as internal.

Frequently Asked Questions

Most Viewed Tools

📺

Screen Size Converter — Diagonal Dimension Tool

7,206 views

Calculate screen width and height from diagonal size and aspect ratio. Convert between inches and centimeters for displays, TVs, and monitors with instant dimension calculations.

Use Tool →
🖨️

DPI Calculator — Print Resolution Tool

5,465 views

Calculate DPI (dots per inch), image dimensions, and print sizes. Convert between pixels and physical dimensions for printing and displays.

Use Tool →
🔐

TOTP Code Generator — 2FA Testing Tool

3,869 views

Generate time-based one-time passwords from a TOTP secret key. Enter your base32 secret, choose a period and digit length, and get the current and next codes with a live countdown timer. Useful for testing and debugging 2FA integrations.

Use Tool →
🔑

Password Entropy Calculator — Crack Time Estimator

3,790 views

Calculate the information-theoretic bit entropy of any password or API key. Detects character set pools automatically, shows the total number of possible combinations, and estimates crack time across five attack scenarios from rate-limited web logins to GPU cracking clusters.

Use Tool →
{}

JSONL Formatter — Line-by-Line Validator

3,762 views

Format, validate, and inspect JSON Lines (JSONL) and NDJSON files. Validates each line individually, reports parse errors by line number, outputs compact JSONL or a pretty-print preview, and lets you download the cleaned file.

Use Tool →
{ }

JSON to Zod — Schema Generator

3,625 views

Generate Zod validation schema code from a JSON sample object. Infers z.string(), z.number(), z.boolean(), z.array(), z.object(), and z.null() types automatically. Handles nested objects, arrays of objects with optional field detection, and outputs copy-ready TypeScript with import and z.infer type alias.

Use Tool →
⏱️

Seconds to Time Converter — HH:MM:SS Formatter

3,539 views

Convert seconds to HH:MM:SS time format instantly with precise calculations and easy-to-read formatting.

Use Tool →
🔐

TLS Cipher Suite Checker — Strength Analyzer

3,497 views

Check TLS protocol version compatibility and cipher suite strength ratings against current best practices. Supports IANA and OpenSSL cipher names — rates each suite as Strong, Weak, or Deprecated and explains why.

Use Tool →

Related API & Backend Tools

📊

GraphQL Cost Estimator — Analyze Query Complexity and Depth

Assign custom field weights to a GraphQL schema and calculate the total query complexity score. Paste any GraphQL query, configure per-field costs, and get a per-field breakdown table showing depth, multipliers, and cumulative cost.

Use Tool →
🔁

Webhook Retry Config Calculator — Simulate Exponential Backoff & Jitter

Configure exponential backoff parameters and preview the full retry schedule for webhook delivery. Enter max attempts, initial delay, multiplier, jitter, and a max delay cap to instantly see each retry timestamp, cumulative elapsed time, jitter range, and which delays hit the cap. Supports presets for standard, aggressive, conservative, Stripe-style, and fixed-interval retry policies. Free and runs entirely in your browser.

Use Tool →
{}

GraphQL Variables Formatter — Query Validator

Format and validate GraphQL query variables JSON for use in queries and API clients. Paste your variables JSON alongside a GraphQL query to instantly format the JSON, validate that each variable matches its declared type, catch missing required variables, and highlight undeclared extras.

Use Tool →
🗄️

API Mock Server Config Generator — Build Instant Mock Endpoints Online

Paste API route definitions to instantly generate JSON configuration files for json-server, Mockoon, and Prism mock servers. Define routes as METHOD /path lines and get ready-to-use config with realistic sample data.

Use Tool →
🔄

Postman to OpenAPI Converter — Spec Migration Tool

Convert Postman Collection v2.1 JSON to OpenAPI 3.0 specification format. Upload or paste your collection, and get a downloadable openapi.yaml or openapi.json with mapped paths, parameters, request bodies, and example responses.

Use Tool →

GraphQL Subscription Builder — Generate WebSocket Payloads and Client Queries

Build GraphQL subscription query strings and generate WebSocket connection code snippets for Apollo Client, urql, and graphql-ws. Define your operation name, variables, and selection fields visually, then copy the ready-to-use code.

Use Tool →
🔁

OpenAPI Mock Generator — Turn API Specs into Live Mock Servers

Paste an OpenAPI 3.x or Swagger 2.0 spec, select any endpoint, and instantly get a realistic mock request body and response matching the defined schemas. Also generates a ready-to-run cURL command.

Use Tool →
📡

Server-Sent Events (SSE) Formatter — Build and Debug Real-Time Streams

Build Server-Sent Events messages with id, event, data, retry, and comment fields for testing SSE endpoints. Fill in each field individually and instantly see the correctly formatted SSE message string with double-newline terminator. Supports multi-line data fields, keep-alive comment lines, and an escaped wire-format view. Five presets cover the most common SSE patterns. Free and runs entirely in your browser.

Use Tool →

Share Your Feedback

Help us improve this tool by sharing your experience

We will only use this to follow up on your feedback