NullReference
NullReference

Reputation: 1036

Signalr Message batching

I am researching a development of real time messaging with Signal R with web socket as transport.

My application will generate multiple messages at high rate and one question I came across is whether it would be a good idea to consider batching multiple messages before sending them out to the clients. I have looked at the streaming functionality Signal R offers but I don't think it fits well in this case.

The messages will have variable sizes from just few bytes and up to kilobytes.

As I understand if messages are batched then there will be less time spent for serialization? Of course this will depend on the serializer being used and may vary depending on message size. Also there will be less round trips between client and server?

So the question is whether there would be performance gains by batching multiple messages before sending them out to clients.

I understand that it would be hard to give an conclusive answer but still would want to hear some ideas on the topic.

Upvotes: 0

Views: 1210

Answers (0)

Related Questions