3 ms·
Thanks! So, you would use node.js just as a service to process data on the server side and not as a application for the desktop (with a gui)?
by ph0o 11y ago
Thanks!
So, you would use node.js just as a service to process data on the server side and not as a application for the desktop (with a gui)?
- sova 11y agoTypically Node.js is for high I/O web applications. Thanks to the wonderful asynchronicity of javascript (callbacks "let me know when this is ready/done") it's really wonderful for browser-based programs. However, there is growing discussion about using Node.js for desktop applications. Please see https://nodesource.com/blog/node-desktop-applications https://nodesource.com/blog/node-desktop-applications
- fleitz 11y agoNode also works well for desktop apps because it's got the run loop. Desktop apps are insanely high frequency IO apps, basically, its an Input Queue reading the mouse / keyboard / touch screen and a run loop, which is exactly what node is, except node originally envisioned the input queue being web requests. And most desktop apps are single threaded on the UI.