Load test RabbitMQ with every message accounted for

Orders, payments and jobs move between services through RabbitMQ queues. With the community AMQP plugin, Gatling publishes at production rates, waits for replies and checks them, so you see slow consumers and lost messages before your users do.

01 · WHAT GATLING MEASURES

Measure the round trip, not the publish

A publish that returns fast only means the broker took the message. The real question is what happens next: is it consumed, processed and answered, in time, as the rate grows? Request-reply and consume actions measure that, per virtual user, under load.

ONE MESSAGE, UNDER LOAD

From publish to checked reply, in one Gatling test

Publishqueue, direct or topic exchange
Broker acceptspublisher confirm
Consumer processesyour service
Reply arriveson the reply queue
Reply checkedmatched and validated
Broker acceptsWhere most tests stop
Publish to reply checkedWhat Gatling measures

Each publish, reply and consume appears side by side in the same Gatling report.

How Gatling does it

CHECKS

Validate every reply

Check replies and consumed messages with JSON path, JMESPath, XPath or body checks, and apply checks only when a condition holds.

MATCHING

The right reply on a shared queue

Match replies by message ID, by correlation ID, or with your own matching logic.

TOPOLOGY

Declare what the test needs

Declare queues and exchanges and bind them before the test runs, so no message is discarded for lack of a queue.

02 · USE CASES

Where teams load test AMQP

RabbitMQ carries the work your services hand to each other. These are the flows to test before a launch, a sale or a migration.

ORDERS

Order and payment flows

Orders published to a queue and confirmed by downstream services. Measure round-trip time as order volume grows.

JOBS

Background work queues

Image processing, emails and reports queued for workers. Measure how fast consumers keep up before the queue backs up.

RPC

Request-reply between services

Services calling each other through a reply queue. Measure response times and timeouts as concurrency grows.

EVENTS

Topic exchanges

Events routed to many consumers by routing key. Measure whether each consumer gets its messages in time.

MIGRATION

Broker upgrades

A new RabbitMQ version, cluster or managed service. Run the same test before and after, and compare the reports.

YOUR BROKER

A different architecture?

Tell us about the queues that matter to your business. We’ll help you design the right Gatling test.

03 · WHY GATLING

AMQP testing with a community plugin

Publish, request-reply, consume, publisher confirms and topology declarations, from an open source plugin that runs inside Gatling and reports like any other protocol.

3
actions: publish, request-reply and consume
3
ways to match replies: message ID, correlation ID or custom
16
channels in the default pool, configurable
2
languages: Scala, and Java through its Java API
REQUEST-REPLY

Measure the full round trip

Send a request with a reply queue and wait for the matching reply, with a timeout. Response time covers the whole round trip, not just the publish.

INFRASTRUCTURE

Private Locations

Run next to brokers that aren’t reachable from the internet, with no inbound access to open.

CI/CD

Performance gates with assertions

Set assertions on response time and failed checks per queue. If one fails, the Gatling test fails and so does the build.

See Gatling in action

Build, run, and interpret your first load test. A practical session: by the end, you'll know exactly what Enterprise gives you out of the box.

Loading next session...

30 minutes

Live + Q&A

04 · GET STARTED

Your first Gatling test for AMQP

The plugin repo with its examples, plus Gatling’s built-in JMS support if your broker exposes a JMS client.

Community plugin: maintained by Galaxio under the Apache-2.0 license, not by Gatling. Pick the plugin line that matches your Gatling version.Gatling Enterprise: distributed load generators, run history and shared reports. Talk to us about AMQP tests at scale.
05 · OTHER PROTOCOLS

One platform for every protocol you run

Same Gatling SDK, same reports, same infrastructure.

Also supported: HTTP, WebSocket, SSE, GraphQL and JDBC. See the full tech stack›

FAQ

AMQP load testing, answered

What teams ask before they run their first AMQP test with Gatling.

Is AMQP supported natively in Gatling?

No. AMQP support comes from gatling-amqp-plugin, an open source community plugin maintained by Galaxio under the Apache-2.0 license. It isn’t maintained by Gatling.

Do I need to create queues before the test?

Yes. If the target queue doesn’t exist, the broker discards the message without an error. Declare and bind queues and exchanges in the simulation, or create them before the run.

Can I consume messages without sending them?

Yes. The consume action polls a queue with a timeout, 5 seconds by default, and fails if no message arrives.

Can I test request-reply flows?

Yes. Send a request with a reply queue and wait for the reply, matched by message ID, correlation ID or custom logic. Requests time out after 60 seconds by default.

Does it work with brokers other than RabbitMQ?

The plugin documents RabbitMQ only. If your broker exposes a JMS client, Gatling’s built-in JMS support is another option.

Which Gatling versions and languages are supported?

The plugin has separate lines for Gatling 3.11 and 3.13, built for Scala 2.13 and Java 17+. Write tests in Scala, or in Java and Kotlin through its Java API. The JavaScript and TypeScript SDKs aren’t supported.

AMQP LOAD TESTING WITH GATLING ENTERPRISE

Find out how many messages your queues can take

Bring one queue that matters to your business. We’ll look at your setup with you and plan the right test.

Find out where your queues break

Bring one queue that matters to your business. We'll show you how to plan a test at production scale with Gatling Enterprise.

Need technical references and tutorials?