Sharing variables between Virtual Users
Summary
Sharing dynamic values across Virtual Users is often required in realistic load-testing scenarios. AMQP provides a simple and reliable way to exchange data between scripts by pushing values into a queue and retrieving them later. The tutorial demonstrates how one Virtual User can publish generated IDs to RabbitMQ, while another consumes them on demand.
CloudAMQP is used as the example broker, but the method works with any AMQP-compatible system. OctoPerf integrates easily with these HTTP endpoints, allowing both insertion and retrieval of queued values. Combined with JSON extractors, this approach makes cross-VU coordination straightforward and scalable.