DEV Community

Discussion on: Perf question: How many processes in Node js?

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

Since we are talking hypothetically anyway, I appreciate your ears haha, here is what I'm trying to achieve.

Goals:

  • Application must feel seamless during enable disable functionality
  • Application must be secure meeting owasp top 10
  • Pause and resume execution of JavaScript. (or emulate it)
  • Hotswap and never shutdown, application, emulating a PHP based pluggable CMS.
  • Use plugins on demand as required and intelligently measure and hybernate plugins which are not in use.

I'm agile, I'm not doing it all at once, just laying some foundations.

By default all my plugin processes are suspended at startup, they will be short lived switching States as required.

Your refering to workers and fork when you say "not manually"?

Is my idea overkill?

How then could I pause plugins from running. Could a generator function toggle on and off.

Ps, I know very little about go.