Steadybit logoReliability Hub
GitHubGitHub iconStart Free Trial
Steadybit logoReliability Hub

Publish (# of Messages)

AttackAttack
Publish a fixed total number of messages to a queue, distributed evenly across the duration
Targets:
RabbitMQ Queues
Install now

Publish (# of Messages)

Publish a fixed total number of messages to a queue, distributed evenly across the duration
AttackAttack
Install now

Publish (# of Messages)

AttackAttack
Publish a fixed total number of messages to a queue, distributed evenly across the duration
Install now

Publish (# of Messages)

Publish a fixed total number of messages to a queue, distributed evenly across the duration
AttackAttack
Install now
Go back to list
The action "Publish (# of Messages)" within the experiment editor.The action "Publish (# of Messages)" within the experiment editor.

Introduction

Publishes a fixed total number of messages to a RabbitMQ queue. The messages are distributed evenly across the attack duration — for example, 100 messages over 10 seconds publishes approximately 10 messages/second. The effective rate is: numberOfMessages / duration.

For rate-based publishing (messages per second), use Publish (Messages / s) instead.

Use Cases

  • Generate a known number of messages to create queue backlog, then verify consumers can catch up.
  • Publish test messages to a queue while injecting faults, and verify delivery success rate.
  • Inject a burst of messages to test consumer throughput under load.

Parameters

ParameterDescriptionDefault
DurationHow long the publisher runs. The total number of messages is distributed evenly across this duration.30s
Number of MessagesTotal number of messages to publish across the entire duration. The publishing rate is this value divided by the duration.1
ExchangeOptional. The AMQP exchange to publish to. Defaults to the default exchange (empty string), which routes directly to the queue.
Routing KeyOptional. The routing key used for message delivery. Defaults to the queue name if empty.
Message HeadersOptional. AMQP message headers to include in the message properties. Specified as key-value pairs.
BodyThe message body. Every message uses this same value.test-message
MaxConcurrentMaximum number of parallel publish requests in flight at once. Min: 1, Max: 10.1

More RabbitMQ Queue Actions

See all
Alter Queue Max Length
Limit the maximum number of messages a queue can hold by creating a temporary RabbitMQ policy. The policy is removed when the attack ends.
AttackAttack
RabbitMQ Queues
Start Using Steadybit Today

Get started with Steadybit, and you’ll get access to all of our features to discover the full power of Steadybit. Available for SaaS and on-prem!

Are you unsure where to begin?

No worries, our reliability experts are here to help: book a demo with them!

Statistics
-Stars
Tags
Message Queue
RabbitMQ
Homepage
hub.steadybit.com/extension/com.steadybit.extension_rabbitmq
License
MIT
MaintainerSteadybit
Install now
Steadybit logoReliability Hub
Start Free Trial
© 2026 Steadybit GmbH. All rights reserved.
Twitter iconLinkedIn iconGitHub icon