Dev
Mock-RabbitMQ-Nachrichten-Generator
A mock RabbitMQ message generator produces fake message-queue payloads with routing metadata for testing and learning. Message queues move data between services asynchronously, and a message carries not just a payload but routing information — an exchange, a routing key, and properties like a message id and delivery mode. This tool emits a realistic message object with all of that. Click generate and copy it into a test or a tutorial. It is ideal for testing a consumer, building a mock queue, and learning message structure. The message reflects the real shape RabbitMQ uses, so it shows how the payload travels with its exchange, routing key, and properties. The payload and ids are random and reference nothing real, which makes them safe to use freely. Adapt the exchange, routing key, and payload to your own system when you wire up a real queue and consumer.
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Click Generate to produce a queue message.
- Copy the JSON into a test or mock queue.
- Use it to exercise a consumer.
- Adapt the routing and payload to your system.
Use Cases
- •Testing a message consumer
- •Building a mock queue
- •Learning message-queue structure
- •Seeding sample messages
- •Demoing async messaging
Tips
- →Messages carry routing metadata.
- →The routing key directs delivery.
- →delivery_mode 2 means persistent.
- →Adapt the payload to your system.
FAQ
what is in a message-queue message
Beyond the payload, a message carries routing information — an exchange and routing key that determine where it goes — and properties like a message id, content type, and delivery mode. This sample includes all of those, mirroring a real message.
what is a routing key
A routing key is a label the message broker uses to decide which queues a message is delivered to, based on the exchange's rules. Patterns like order.created let consumers subscribe to exactly the events they care about.
are these messages real
No. The payload and ids are randomly generated and reference nothing real, so they are safe to use freely in tests and demos. They follow the structure of a real message, which is what matters for exercising a consumer.
What is a routing key in a message queue?
A routing key is a label on a message (like email.queued) that an exchange uses to decide which queues should receive it, based on the bindings you configure. It is how publish-subscribe and topic routing work in RabbitMQ. The generated payloads include realistic routing keys and exchange names, so you can test routing logic and consumers against message structures that look real.
What fields make up a generated message payload?
Each payload includes the exchange, a routing key, and a properties block with metadata such as a message id, content type, and timestamp — mirroring the envelope a real broker attaches to a message. That structure lets you exercise parsers and consumer code. The body and ids are randomised but well-formed, so the fixtures behave like genuine queue traffic.
You might also like
Popular tools from other categories that share themes with this one.
Try these next
More free tools from other corners of the catalog, picked by shared themes.