Iโve already searched quite a lot. However, still doubting the main parameter in package.json Node.js.
- How will be filled in this field? By asking differently, can I run the module in a different style if this field is presented?
- Can I add more than one script to the main parameter? If so, will they start as two threads? If not, how can I run two scripts in a module and run them in parallel?
I know that the second question is rather strange. This is because I adopted the Node.js application on OpenShift, but the application consists of two main components. One of them is a REST API, and one is a notification delivery service.
I'm afraid that the notification delivery process would block the REST API if they were implemented as a single thread. However, they must be connected to the same MongoDB cartridge. In addition, I would like to keep one gear, if both components can serve on the same gear, if possible.
Any suggestions are welcome.
Gavin Mar 19 '14 at 16:59 2014-03-19 16:59
source share