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.
How to Use AMQP Exchange Configuration Simulator — Map Routing Keys and Queue Bindings
How to Use the AMQP Exchange Config Builder:
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.
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.
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.
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.
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.
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.
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
TOTP Code Generator — 2FA Testing Tool
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 →JSON to Zod — Schema Generator
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 →JSONL Formatter — Line-by-Line Validator
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 →Screen Size Converter — Diagonal Dimension Tool
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 →Password Entropy Calculator — Crack Time Estimator
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 →TLS Cipher Suite Checker — Strength Analyzer
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 →Secret Scanner — API Key & Credential Detector
Scan pasted text, code, or config files for accidentally exposed API keys, tokens, passwords, and private keys. Detects 50+ secret types across AWS, GitHub, Stripe, OpenAI, and more — all client-side, nothing leaves your browser.
Use Tool →TOML Config Validator — Syntax Error Finder
Validate TOML configuration file syntax and report errors with line numbers. Paste any TOML content — Cargo.toml, pyproject.toml, config.toml — and instantly see a green checkmark with key counts and structure stats, or a precise error message pointing to the exact line. Includes a collapsible JSON structure preview to confirm what was parsed.
Use Tool →Related API & Backend Tools
GraphQL Query Formatter — Mutation & Subscription Tool
Format and prettify GraphQL queries, mutations, subscriptions, and fragments with correct indentation.
Use Tool →REST Endpoint Documenter — Markdown Doc Generator
Document a REST endpoint quickly by entering the URL, method, headers, and sample request/response. Generates formatted Markdown documentation and an example cURL command instantly.
Use Tool →API Gateway Rate Limiting Calculator — Model RPS, Burst, and Token Buckets
Calculate token bucket size and refill rate from RPS targets for API gateway throttling. Enter your steady-state requests per second, burst multiplier, and average response time — the calculator outputs the bucket capacity, refill rate, per-minute and per-hour quotas, and concurrent connection estimate. Generates ready-to-paste throttling config for AWS API Gateway, Kong, and Nginx. Free and runs entirely in your browser.
Use Tool →OAuth Token Validator — JWT & OIDC Decoder
Validate and inspect OAuth tokens in your browser. Decode JWT access tokens and ID tokens to view claims, scopes, and expiry. Analyse opaque tokens for entropy and format. Free and private.
Use Tool →API Latency Budget Calculator — Plan Distributed System Performance
Set a P99 SLO latency target and distribute the budget across your upstream service dependencies. See remaining headroom, utilization percentage, a stacked allocation bar, and a per-service breakdown with optional P99 actual measurements.
Use Tool →API Mock Data Generator — Realistic JSON Builder
Generate structured, realistic mock data for API endpoint testing. Define fields with names and types — UUID, name, email, integer, enum, date, and more — set how many rows you need, and export as a JSON array, NDJSON, or CSV. All generation runs entirely in your browser with no data sent to any server.
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 →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 →Share Your Feedback
Help us improve this tool by sharing your experience