oransel/node-talib

Can you explain the deployment architecture in the docs?

Closed this issue · 3 comments

May be a naive question, but I don't understand how TA-lib, written in C++, is deployed with this Node wrapper. Is it a separate process from Node, or are they somehow running in the same process?

The core library is written in C++, but it is integrated into a node module. Execution is async.

Are you saying that the C++ code runs within the Node vm?? Or is it a separate process started by Node? What O/S is the C++ compiled for? Does the user of the library need to start TA-lib, or is the entire thing managed by your Node module? I think this topic deserves some explanation in the docs.

Module is instantiation is in the main process. Calculation work runs asynchronously via libuv. Once the work is done, results are queued to the callback function provided. These are very standard node.js conventions.

Due to the nature of these types of async libraries, you don't need to start it as you would in other platforms.

The module is compiled on the target platform during installation.