We need to implement a group of tests measuring latency metrics (minimum latency, maximum latency, average latency, standard deviation) by varying the following attributes:
number of producers and consumers
The publishing rate should be deliberately limited in such tests to never throttle the broker or exceed the consumption rate.
Ideally, a special configuration parameter like expectedPublishingRate can be added to control publishing, however, we can use currently implemented "interval" parameter. We can also publish data in small batches with delays between batches.
Also, it would be interesting to see comparison of latency vs throughput by varying the publishing rate.
Publishing in AA mode is only required for initial latency tests.