There are many examples that use chunking and fetching a block of stream to client. I’m looking for something similar to chunching that sends one datacontract buffer at a time to client. I’ve seen example that is using the yiel key word to do this, but I still see the whole result returned instead. Could anyone have done this before the show me?
Share
If you want to get one record at a time, you could conceivably encode that into the contract, i.e. use pagination.
That said, I don’t see much in the way of value with fetching one record at at time. You want to transmit as much as you can in a single request without opening yourself up to DOS attacks, but there’s no set value for “this much and no more” — it’s a balancing act that has no real solution.