1

I'm trying to figure out how to do load testing on a long polling or web socket type of architecture. I need to setup multiple clients which subscribe to channels on one side and wait for responses. The load testing should measure the time it took for messages from the publishing server to reach the clients.

Any ideas?

Yuval Kalev
  • 111
  • 6

3 Answers3

0

As said here,

SignalR uses a particular protocol to communicate so it's best that you use our tool to generate load for testing your server(s).

So, SignalR comes with Crank. Crank can only connect to PersistentConnection based apps and not Hub based app.

This another answer could help you for Hub based app.

Community
  • 1
  • 1
Cybermaxs
  • 24,378
  • 8
  • 83
  • 112
0

You can use crank, as referred above. One of the parameters is Transport, so you can specify only LongPolling:

crank.exe /Url:http://someUri /Transport:LongPolling
penderi
  • 8,673
  • 5
  • 45
  • 62
0

Use JMeter (https://jmeter.apache.org/) and flood with http connections with transport-type as header.

Hari
  • 383
  • 1
  • 3
  • 9