3 ms·
These were great ideas, but blocking the event loop could have been discussed more. Great suggestions on how to profile, but some examples of how to write code
by hacknat 12y ago
These were great ideas, but blocking the event loop could have been discussed more.
Great suggestions on how to profile, but some examples of how to write code that doesn't block could have been given (for example, spawning a child process to do a continuous set of discrete tasks).
Additionally, node's limits should be discussed. If a specifically intense compute task requires a lot of input and will also generate a lot of output (depending on how frequently this task occurs), that's where node starts to really get clobbered and the solution may be very difficult.
- alessioalex 12y agoThanks for the suggestions. Indeed I could have elaborated more on the subject, but I was afraid the article would be longer that needed. I'll keep these in mind for a future one though.