通过网络异步发送数据并在 .NET 中预取
如果您曾经使用过 SQL Server Management Studio,您会注意到在查询完成并且客户端收到所有结果之前,查询结果如何开始显示在查看器中。
我希望为我自己的数据存储/数据流场实现(重用)该功能。
- 客户端向服务器发送查询并返回 IEnumerable (4.0 IObservable?)
- 客户端对其进行迭代,直到 a) 流结束或 b) 客户端显式取消查询 异步
- ,客户端上的单独线程继续接收数据,但没有超过某些缓冲区允许的范围。
- 如果没有新数据可用,客户端应该能够阻止/收到通知/忙戳。
有这样的图书馆吗? ADO 提供商是否实现了类似的功能?流媒体引擎?
谢谢!!!
If you have ever used SQL Server Management Studio, you would have noticed how query results begin to show in the viewer before the query is finished and all results are received by the client.
I am looking to implement (reuse) that functionality for my own data store / data streaming farm.
- Client sends a query to the server and gets back an IEnumerable (4.0 IObservable?)
- Client iterates over it until a) end of stream or b) Client explicitly cancels the query
- Asynchronously, a separate thread on the client continues to receive data, but no more than some buffer would allow.
- If no new data is available, client should be able to either block / get notified / busy poke.
Are there any libraries like that? Are ADO providers implement something similar? Streaming engines?
Thanks!!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论