On Sun, Jul 5, 2015 at 5:45 PM, Ω Alisson <[email protected]> wrote: > What would you guys consider the maximum "safe" size for a JSON string to be > parsed without blocking the event loop?
Every single line of javascript "blocks" the event loop, in some sense. cpu intensive activity isn't a binary: blocking vs non-blocking. Measure the time to parse the kind of json you will get yourself, with your deployment machine, and see what the time is (process.hrtime). Then ask what the impact would be on your app, and what the maximum transactions a second would be capped at with that time, and whether that is acceptable. 5ms could be not much time... but it means your max TPS would be 200... if that's OK, that's OK. -- http://StrongLoop.com makes it easy to develop APIs in Node, plus get DevOps capabilities like monitoring, debugging and clustering. -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/CACmrRmQi-vALxyK0U%3DpjFsdZupDohdM5HjhFVrbNvnDoR5j3kA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
