× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




For example, it's been documented that Node.js shouldn't be used for
calculation intensive applications.


The presentation referenced by Kelly cautioned against running CPU
intensive workloads which would tie up Node's event loop, which is single
threaded.

The main idea behind Node seems to be a process which cycles through event
queues, some of which call for Node to dispatch "service" requests to
thread pools which are primarily network, file system, and database I/O
related. Services in turn generate responses which are placed on event
queues, which are also monitored in the event loop, which Node dispatches
to callback functions.

Most language environments don't cycle through event queues, but Node is an
exception. One needs to keep that in mind when implementing application
logic.

If I understand correctly, generating a PDF file would be a CPU intensive
workload that you wouldn't want to delay Node's event handling. I'd still
like to hear back from Kevin about his idea or method of forking such tasks
to "child processes".

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.