7
votes

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?

2
What does it mean? What are you expecting from that tool? Please, elaborate more. That isn't clear to me what is "load testing". Thanks - Artem Bilan
Please check the question and see if it makes sense now. - user3600073
Yes, it's better. Thanks. And sorry: no ideas how to help you... - Artem Bilan
why do you want to test STOMP end points rather than the rest URL ..I am sure you can put same amount of load by hitting the rest URL which will be straight forward... - user666
How would I know the if message loads on websocket can be handled by STOMP end points without testing them? I can certainly test my Rbbitmq server with Gatling extensions , however that will not cover end to end. Am I missing something here? - user3600073

2 Answers

2
votes

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.

1
votes

I believe both Gatling and JMeter have WebSocket protocol support, see the following material for details: