What is the best way to host node.js app on Windows? -


i have restful api implemented on nodejs have host on windows. app simple restful service, maybe in future implement backoffice manage users, display statistic etc. app api, maybe in future extended serve few pages dynamic content, not going provide access static content (except regular content web apps: favicon, images, css, js files etc).

after research see few options host app on windows:

  1. use windows service run node server.
  2. use iis , iisnode module front server.
  3. use nginx on windows front server (i didn't work nginx, seems can used host node , can used on windows).

my questions:

  1. as understood better use front server. approach has lot of benefits: can manage app state, logs, domain names etc. benefits of using windows service host app?

  2. how choose between iis , nginx. wise use nginx on windows, have advantages?

thank you.

iisnode has number of benefits outlined on project page. https://github.com/tjanczuk/iisnode/wiki

i lean direction because if have host on windows, indicates there knows how manage windows servers , typically include iis. if set own windows service, become responsible scalability , recovering process if crashes.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -