开发者

Sending data async over network with prefetching in .NET

开发者 https://www.devze.com 2022-12-15 22:26 出处:网络
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.

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 bl开发者_如何学Cock / get notified / busy poke.

Are there any libraries like that? Are ADO providers implement something similar? Streaming engines?

Thanks!!!

0

精彩评论

暂无评论...
验证码 换一张
取 消