signalR和大数据传输 [英] signalR and large data transfer

查看:453
本文介绍了signalR和大数据传输的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我打算在客户端和服务器之间使用signalR进行一些实时通信.客户端不时需要向服务器发送约15MB的大数据.

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)看起来signalR并非用于发送大数据.他们在最新版本中是否添加了对发送大数据的任何支持?

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)我可以在消息中发送的最大数据数组是什么?

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

3)拆分大数据并将其作为较小的块发送是否太慢?

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

4)什么是备用选项?有什么我可以研究的例子吗?

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

5)我可以运行WCF服务以与SignalR一起流传输大数据以进行实时通信吗?

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

推荐答案

通过SignalR发送将使用错误的工具来完成工作.在这种情况下,最好的做法是通过SignalR发送特定消息,该消息将URL作为参数传递.然后,您可以使用多种方法在客户端中触发基于标准HTTP GET的下载进行处理.

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.

这篇关于signalR和大数据传输的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆