MDSLab / s4t-lightning-rod

Implementation of the Lightning-rod, the Stack4Things node-side probe (this version works with the standalone version of IoTronic)
http://stack4things.unime.it/
Apache License 2.0
3 stars 8 forks source link

Minimize process spawning #19

Closed gmerlino closed 7 years ago

gmerlino commented 8 years ago

At the moment any plugin loaded at runtime gets spawned as an additional (child) process.

An alternative implementation seeking to reduce the load of any further Node.js process, in place of requiring+spawning code, should try to:

This is obviously not too robust, e.g., a bug in any of the running plugins possibly brings down/hangs all the other plugins, but it is not that critical either, given the segregation of all non-critical code in a separate process.

flongo82 commented 8 years ago

Note that here we are talking about user-developed plugins, not plugins related to core/non-core functionalities of lightning-rod, e.g., network management (those will be implemented as lightning-rod modules and will not be spawned as different plugins).