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 8310171
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:21:49+00:00 2026-06-08T19:21:49+00:00

Please pardon my ignorance on node.js. I have started reading on node.js and have

  • 0

Please pardon my ignorance on node.js. I have started reading on node.js and have some perception which might be wrong. So needed it to clarify

  1. When we use createServer() method, does it creates a virtual server. Not sure whether the term “virtual” is appropriate, but it’s the best I can describe it 🙂
  2. I am confused that how should I deploy my application having node.js + other custom js files as a part of it. If I deploy my application in the main server, does that mean I have two servers?

Thanks for bearing with me.

  • 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-06-08T19:21:52+00:00Added an answer on June 8, 2026 at 7:21 pm

    I will try to answer that:

    Q1:

    createServer basically creates a process which listens on the specified port for the requests. So yes you can call it as a virtual server which constantly listens for request at the port.

    Q2:

    Yes you can say that it has now 2 servers

    For eg: you server had apache initially which listens to port 80 (you can access it as http://example.com/ it by default looks for port 80)

    and then you also start the node service listening on some other port for eg: port 8456 (you can access it as http://example.com:8456/ which will look for port 8456)

    So yes you can there are two servers.

    EDIT

    Q: So what would be the difference if the page is served by the physical server and the virtual server created by node.js?

    Physical Server and Node Server are 2 different things and there is no way a single request is going to both the servers.

    For eg:
    I use apache server to host my website running on PHP. It serves all the html contents of my website (which involves connecting to mysql for data).
    Some of the requests could be:

    1. http://example.com/reports.php
    2. http://example.com/search.php

    At the other end I might be using nodejs server for totally another purpose. For eg: I might use it for an API, which returns JSON/XML in return. I can use this API myself for some dynamic contents by making AJAX calls with javascript or simple CURL commands from PHP. Or I might also make this API available to public.
    Some of the requests could be:

    1. http://example.com:8456/getList?apikey=&param1=&param2=

    My choice for NodeJs Server used as an API would be for its ability to handle concurrent request and since its asynchronous for file operations it will be much faster than PHP.

    In this case I have a website which is not only working on PHP but its the combination of 2 different technologies (PHP on Apache and Nodejs) and hence 2 servers are totally different running on same server but have there own execution space.

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

Sidebar

Related Questions

Please pardon my ignorance. I'm looking for a point in the right direction. I
I'm brand new to .net MVC3 so pardon my ignorance. I have a relatively
Please Pardon if the question sounds silly, but nevertheless its a question which I
Please pardon the naivety of this question. It's 2:00 AM. In doing some performance
I'am a novice at this, so please pardon my ignorance while setting up a
I'm new to Ruby on Rails, so please pardon my ignorance. My issue is
Please pardon my slightly humorous title. I use two different definitions of the word
I have the following code: (please pardon the length of this code). I am
Warning - I'm a front end designer; Please pardon my fumbling of the PHP
please have a look at the following code import java.util.ArrayList; import java.util.List; public class

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.