plywood-druid-requester icon indicating copy to clipboard operation
plywood-druid-requester copied to clipboard

[Question] Why streaming json parsing is needed?

Open 0ctopus13prime opened this issue 7 years ago • 0 comments

Hi~!

My team is currently using this library in middle ware api server (Node js <-> Druid cluster) And i found when druid cluster return it's result as series of chunks and druid requester parsing chunks using 'combo' library. (straming json parsing)

I wonder why not just gather all chunks from druid to string and parse combined string to object using native JSON.parse?

Is there reason for using streaming json parse library?

0ctopus13prime avatar Nov 06 '17 09:11 0ctopus13prime