使用 JMeter 和 NATS.io 进行负载测试

Load Testing using JMeter with NATS.io

如何在 NATS 服务中使用 JMeter?

我发现一些文章支持如何将 JMeter 用于某些消息传递代理,如 RabbitMQ。但是,我没有找到任何在 NATS 中使用 JMeter 的指南。

如果 JMeter 不支持 network protocol used by the system under test the next step will be finding a client library for this protocol to mimic real life user or application. For NATS it would be NATS - Java Client

下载库及其传递依赖项(如果有),将 jar 放到 JMeter Classpath and you should be able to use the library API from JSR223 Test Elements using Groovy language.

您也可以考虑 developing your own plugin JMeter。