Streaming an undetermined number of objects through WCF

前端 未结 3 2098
庸人自扰
庸人自扰 2021-02-15 18:46

I have a WCF service that needs to read large (10 to 20 million) numbers of objects from the database.

What I\'d like to do, is have the client open up a stream and ha

3条回答
  •  情话喂你
    2021-02-15 19:25

    How about instead of setting up a streaming/blocking service you use something like WS Dual Http. With it you have an async bidirectional callback channel that allows you to request/reply information back and forth between the server and the client. Issues you may see if you want to stream the entire set is a normal fashion is that some of the resources may block other requests (or timeout) while other users try to access the service.

提交回复
热议问题