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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:45:44+00:00 2026-06-05T15:45:44+00:00

I am starting to work with node.js to build a light-weight, high-demand REST platform

  • 0

I am starting to work with node.js to build a light-weight, high-demand REST platform to build some in-house apps off of. One issue relates to my development environment and having Apache and node.js co-exist. No issue in having them co-exist, as there are lots of posts on how to ‘share’ port 80 via having Apache redirect requests to node:

http://arguments.callee.info/2010/04/20/running-apache-and-node-js-together/
http://www.readwriteweb.com/hack/2010/12/how-to-run-apache-and-nodejs.php

And node proxying to Apache:

https://github.com/nodejitsu/node-http-proxy

One question that seems to go wanting however relates to the performance ‘hit’ when proxying, specifically when using Apache to proxy node. While my production environment will be a pure node.js solution listening on port 80, in theory wouldn’t having Apache step in and handle the initial I/O pretty much defeat most of the performance benefits of using node.js, from the I/O perspective? If this box is getting thousands of requests, long-polling, etc would the Apache redirects not be spawning many many threads, that then pass off to the single-threaded node.js?

As I said, new to node, so just trying to get my head around this issue moving forward.

  • 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-05T15:45:46+00:00Added an answer on June 5, 2026 at 3:45 pm

    You got the basic idea right.

    Having Apache handling the requests first make it part of the chain and if it is the weakest link in the chain it could slow down you application.

    In standard configuration Apache is not slow if the number of concurrent requests is low, but the more request are handled the more RAM is used by the Apache. If you are using some persistent connections you could easily hit some limits there.

    Apache has different MPM (Multi-processing modules). By default it uses mpm_prefork which is known to be memory hungry (one thread per connection).
    You could switch to mpm_worker which uses a similar model as node.js to handle connections is is more suitable for the kind of task you try to archive. (evented connection handling, but it has some quirks with other modules [like mod_php] to not be thread-safe anymore.)

    As always the best solution would be: Try different things, make some benchmarks and take what works best for you.

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

Sidebar

Related Questions

I'm starting work on some simulations using MPI and want to do the programming
I'm starting some work on a rather large JS project and want to make
I'm starting to work with oop to build a site of user generated data.
I'm starting work updating an UI for one of my company's applications and I'm
I'm starting to work on a small script that takes a string, counts the
I'm starting on work on my first Windows Mobile 6.5 app in C#, and
I'm starting to work with Entity Framework as ORM. But my question is: is
I'm starting to work on a 3D particle system editor and evolver. Ive done
I am very familiar with C# but starting to work more in Java. I
I have a python IRC bot that I'm starting to work on to practice

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.