springjmeterspring-integrationspring-websocketgatling

Spring Websocket STOMP load testing


I am developing a messaging application using Spring REST, Websocket/STOMP and RabbitMQ. We use are using gatling for load/stress testing the REST end points of the application. However, we would like to know how many messages can be processed with Spring Websocket/STOMP end points. While Gatling has web socket, RabbitMQ and ActiveMQ extensions, I could not find one specifically for testing the STOMP end points.

Can you suggest a tool/framework that can be used to load/stress test Spring Websocket/STOMP end points?


Solution

  • I solved this by using native STOMP text messages as payload. For example for the connection request, I sent

    CONNECT

    accept-version:1.0,1.1,2.0

    host:stomp.github.org

    ^@

    from my test case to the end point.