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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T18:06:09+00:00 2026-06-04T18:06:09+00:00

We are considering node.js as a web platform. But I have one crucial question,

  • 0

We are considering node.js as a web platform. But I have one crucial question, because I think I don’t get the architecture of node.js:

  1. It looks like that by default you’re forced to use their custom HTTP server, no WSGI or anything?!

  2. It looks like that when doing some “real computation” in a response (not only some I/O), all the infrastructure is messed up and ab -n ... -c ... returns enormous times per request compared with e.g. Python — Pyramid/Flask or whatever?!

  3. So, authors of node.js assume that we’re doing only I/O or I’ve missed something very basic?

  • 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-04T18:06:11+00:00Added an answer on June 4, 2026 at 6:06 pm
    1. You contradict yourself: “by default” and “forced” are not compatible. You can use whatever HTTP library you want. The core http module may be thought of as a “default,” but nothing stops you from using another.

    2. JavaScript is a single-threaded language, and Node.js is a JavaScript runtime, not a web server that spawns a thread-per-response like many others. You can still do a thread per response if you want, and there are projects built on top of Node that do this, but you lose most of the benefits of Node. If you are doing computation-heavy stuff in response to a web request (and you have clients who are willing to wait for you to do it), you should spin off a separate thread via one of the many available solutions (web workers, threads-a-go-go, child_process, etc.).

    3. The authors of Node.js assume you are writing a web server. Most of the things you do in a web server are, essentially, IO, whether that IO involves a filesystem, a database, or even a message bus used for queuing computationally-intensive tasks on other workhouse processes.

    Looking over your question, you seem to have a basic misunderstanding of what Node.js is, if you’re trying to integrate it with Python and WSGI. Node.js is for writing web servers, so trying to use it… alongside Python? inside Python? (I’m really not sure what you’re trying to accomplish) makes little sense.

    If your tasks are not only I/O bound, you should probably not be hosting those tasks on the same box as your web server. Thus, the message bus approach mentioned briefly in 3. But if you are determined to do so, and are sure that those tasks won’t hog all the CPU, you should determine how often such tasks are prevalent. If they are on every web request, you should not use Node.js; you are giving up its most basic advantages, leaving only minor ones (like the ecosystem that’s grown up around it). If they are rare, then you should spin them off in separate threads via the many methods available in 2.

    Relevant: https://gist.github.com/2794861

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

Sidebar

Related Questions

Does node.js (considering a web application) have any preferred UI framework? Or it's an
Considering the code: <noscript><div>FOO</div></noscript> Running $('noscript').html(); returns &lt;div&gt;FOO&lt;/div&gt; but running $('noscript').text(); returns the raw
Considering this question of SO, where whole C# in-memory compiler is being called. When
Long version: I'm new to erlang, and considering using it for a scalable architecture.
I'm considering using Express framework in my next node.js project. However, a stumbling block
I am going to build a web application to manage notes (think of something
I'm considering Redis for a section of the architecture of a new project. It
I have a strait forward aggregator/minimizer/cacher I've written in node.js. It works quite well
I am to build a web app and I have realized that my domain
We are considering development of a mission critical application in Java EE, and one

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.