by gagege · 13y ago · 0 comments
Do you need to stream JSON objects from a server to make this work? You have to get a response from the server in some kind of streaming protocol right?
Or...
Is this just reading the part of the JSON string that it currently has?
I'm inexperienced with streaming, so this might be obvious to some.
EDIT:
Ah, I get it. I was wrong to say it was "streaming". Looks like my second suggestion was the correct one.
Consider if you are writing data from a db: you can either collect all the rows together then write them out, or you can write them out one at a time as you get them. If you write one at a time you are in a sense streaming even if you're not using a streaming protocol.
On a slow network reading any http is like a stream because you can use the first bit to arrive without waiting for the rest. The faster the network the less the benefit but it shouldn't end up worse.