SignalR and Big Data Transfer

I plan on using signalR between the client and server for some real-time communication. From time to time, the client must send ~ 15 MB big data to the server.

1) It seems that signalR is not intended to send big data. Have they added any support for sending big data in recent releases?

2) What is the largest dataset I can send in a message?

3) Is it too slow to break big data and send it as a smaller part?

4) What is the alternative? Any example I can look at?

5) Can I start the WCF service to transfer big data along with signalR for real-time exchange?

+3
webserver wcf client signalr
source share
2 answers

Signal SignalR will use the wrong job tool. It is best in this situation to send a specific message through SignalR, which passed the URL as a parameter. You then process it by running a standard HTTP GET download on the client using any number of approaches.

+6
source share

If you really need to really use SignalR, you can check my answer for: How to send big data via SignalR in a .NET client

You can add a line that makes the message size "infinite" in your Startup.cs by setting MaxIncomingWebSocketMessageSize to null:

public class Startup { public void Configuration(IAppBuilder app) { app.MapSignalR(); GlobalHost.Configuration.MaxIncomingWebSocketMessageSize = null; } } 

} The mine works with ~ 200 KB of data, 10 messages are sent sequentially. I do not know how well it works if there is more data per second.

0
source share

All Articles