I have a RESTful API implemented on nodejs which I have to host on Windows. Now app is just simple RESTful service, maybe in future I will implement the backoffice for it to manage users, display statistic etc. So for now app is just an API, but maybe in future it will be extended to serve few pages with dynamic content, I am not going to provide access to the static content (except regular content for web apps: favicon, images, css, js files etc).
After research I see few options to host my app on Windows:
My questions:
As I understood it is better to use some front server. This approach has a lot of benefits: you can manage app state, logs, domain names etc. What are the benefits of using windows service to host the app?
How to choose between IIS and Nginx. Is it wise to use Nginx on Windows, does it have some advantages?
IISNode has a number of benefits which are outlined on the project page. https://github.com/tjanczuk/iisnode/wiki
I would lean that direction primarily because if you have to host it on Windows, that indicates there is someone who knows how to manage Windows servers and that would typically include IIS. If you set up your own Windows service, you become responsible for scalability and recovering the process if it crashes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With