|
Yes that is right. The main node app is a web socket server, and the
child node processes are listeners that wait for entries to arrive on a
keyed data queue (one child per key). When they get data, they pass it
back to main process to broadcast to the subscribed clients.
One thing I did notice when I started looking at the stats was that my
main process was consuming a ridiculous amount of CPU. A major
worry......until I realise what it was. My app is actually a Sails.js app
that uses Express.js under the covers. Sails also uses something called
Grunt that watches for changes to certain files and then redeploys them.
That was totally superfluous to my requirements, so I disabled Grunt and
the CPU usage returned to next to nothing. Phew! I didn't have the time
or inclination to find out why Grunt was doing this. I suspect I needed to
reconfigure it slightly for this platform - but I couldn't be bothered.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.