implydata/plywood-druid-requester

[Question] Why streaming json parsing is needed?

0ctopus13prime opened this issue · 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?