Closed gmerlino closed 7 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).
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.