Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6153495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T20:06:13+00:00 2026-05-23T20:06:13+00:00

For a SaaS running on Node.JS, is a web-server necessary? If yes, which one

  • 0

For a SaaS running on Node.JS, is a web-server necessary?

If yes, which one and why?

What would be the disadvantages of using just node? It’s role is to just handle the CRUD requests and serve JSON back for client to parse the date (like Gmail).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T20:06:14+00:00Added an answer on May 23, 2026 at 8:06 pm

    “is a web-server necessary”?

    Technically, no. Practically, yes a separate web server is typically used and for good reason.

    In this talk by Ryan Dahl in May 2010, at 37’30” he states that he recommends running node.js behind a reverse proxy or web server for “security reasons”. To elaborate on that, hardened web servers like nginx or apache have had their TCP stacks evolve for a long time in terms of stability and security. Node.js is not at that same level yet. Thus, since putting node.js behind nginx is easy, doesn’t have many negative consequences, and in theory increases the security of your deployment somewhat, it is a good choice. At some point in time, node.js may be deemed officially “ready for live direct Internet connections” but wait for Ryan/Joyent to make some announcement to that effect.

    Secondly, binding to sub-1024 ports (like 80 and 443) requires the process to be root. nginx and others automatically handle binding as root and then dropping privileges to a safer user account (www-data or nobody typically). Although node.js has system call wrappers in the process module to drop root privileges with setgid and setuid, AFAIK other than coding this yourself the node community hasn’t yet seen a convention emerge for doing this. More on this topic in this discussion.

    Thirdly, web servers are good at virtual hosting and in general there are convenient things you can do (URL rewriting and such) that require custom coding in node.js to achieve otherwise.

    Fourthly, nginx is great at serving static files. Better than node.js (at least by a little as of right now). Again as time goes forward this point may become less and less relevant, but in my mind a traditional static file web server and a web application server still have distinct roles and purposes.

    “If yes, which one and why”?

    nginx. Because it has great performance and is simpler to configure than apache.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Between nginx and lighttpd, which one suits the needs of a web-app (SaaS) best
I am implementing a SaaS application using ASP.Net MVC 2 and SQL Server database.
Let's say that accounts in my SAAS are of the type Account(models.Model) . Would
The company I work for is thinking of developing a LAMP SaaS Web application
I'm looking at using ASP.NET for a new SaaS service, but for the love
We're building a Silverlight application which will be offered as SaaS. The end product
I have developed one SaaS based application on Django. During searching more than thousand
We're developing a SaaS application, which, among other things, has to have email integration:
I want to build a web application (SaaS) that can work both in Online
I'm developing a (here comes another one) SaaS and can't seem to decide on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.