8

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?

user3600073
  • 1,773
  • 3
  • 18
  • 21
  • 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 Dec 22 '16 at 01:25
  • Please check the question and see if it makes sense now. – user3600073 Dec 22 '16 at 04:57
  • Yes, it's better. Thanks. And sorry: no ideas how to help you... – Artem Bilan Dec 22 '16 at 12:08
  • 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 Dec 22 '16 at 13:59
  • 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 Dec 22 '16 at 14:04

2 Answers2

2

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.

user3600073
  • 1,773
  • 3
  • 18
  • 21
  • 1
    in case someone needs a running sample with Gatling and STOMP: https://github.com/aemaem/gatling-websocket-stomp – aemaem May 12 '18 at 09:32
1

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

Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • 5
    Well, as I mentioned in the original question I understand that there are extensions to test websocket end points. However, I am looking for something to test Spring STOMP end points on websocket. – user3600073 Dec 23 '16 at 03:10