Publishing Messages
HZN Queue Console lets you publish messages directly to a queue or exchange without writing any code. This is useful for testing consumers, seeding queues with example data, or replaying a specific message.
Publishing to a Queue
- Open the queue you want to publish to in the Queue Browser.
- Click Publish message in the toolbar.
- Fill in the message body and any properties.
- Click Publish.
The message appears in the queue immediately and is delivered to any active consumers.
Message Fields
| Field | Description |
|---|---|
| Body | The message payload. Can be plain text, JSON, XML, or any string. |
| Content type | MIME type of the body, e.g. application/json or text/plain. |
| Headers | Optional key-value pairs added to the message headers. |
Schema-Assisted Publishing
If you open a message via an AsyncAPI schema channel, a dedicated publish dialog validates your JSON body against the schema in real time — errors are highlighted before you send.
Notes
- Publishing is always to the default exchange using the queue name as the routing key.
- Published messages are not automatically consumed — they sit in the queue until a consumer picks them up or until a TTL expires.
- There is no undo for published messages. Purge the queue or route messages away if you want to remove them.
Related
- Queue Browser — navigating queues
- Message Routing — moving messages between queues
- Schema Validation — validating messages against an AsyncAPI schema