Search code examples
wcfwebserverclientsignalr

signalR and large data transfer


I am planning to use signalR between Client and server for some real time communication. How ever every now and then the client need to send large data ~15MB to the server.

1) Looks like signalR is not meant for sending large data. Have they added any support for sending large data in the recent releases ?

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

3) Is it too slow to split the large data and send it as smaller chunk ?

4) What is the alternate option ? Any example I can look into?

5) Can I run WCF service to stream large data along with signalR for real time communication ?


Solution

  • Sending over SignalR would be using the wrong tool for the job. Best thing to do in this situation is send a specific message over SignalR that passed the URL as a parameter. Then you handle by triggering a standard HTTP GET based download in the client using any number of approaches.