NodeJs on apache.

56 views
Skip to first unread message

Wayne Chen

unread,
Apr 16, 2015, 9:16:17 AM4/16/15
to nod...@googlegroups.com
Hi,

I'm creating a live chat application in nodejs with the help of socketio library.  The app is written in nodejs and host on apache with mod_proxy. I'm using apache to host the node server because the rest of the site is on LAMP.  Is there any potential draw back on this (other than the overhead going through apache) ?  would there be any problem if there's more than 100+ users online connected to the chat?


Thanks!!
Wayne

Francesco Cioffi

unread,
Apr 16, 2015, 11:27:54 AM4/16/15
to nod...@googlegroups.com
Sorry for my bad english :)

*** Why do you not consider to proxy apache by nodejs?

NodeJS is more fast than Apache.

2015-04-16 15:26 GMT+02:00 Francesco Cioffi <fci...@gmail.com>:
Hi,

Why do you consider to proxy apache by nodejs?

Maybe apache could suffer with more then 100+ users connected. The fundamental problem is that Apache wasn't built with maintaining many persistent connections in mind.

There is a module for apache web socket, but I don't know how it runs. https://github.com/disconnect/apache-websocket


Bye,
FC
> --
> Job board: http://jobs.nodejs.org/
> New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
> Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> ---
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
> To post to this group, send email to nod...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/47c351fd-ecc0-4e47-a0a5-ab72ddc91642%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.




--
Francesco Cioffi
Computer engineer
http://www.fcioffi.net



--
Francesco Cioffi
Computer engineer
http://www.fcioffi.net

obastemur

unread,
Apr 16, 2015, 1:53:13 PM4/16/15
to nod...@googlegroups.com
I wouldn't suggest Apache / mod_proxy. Our experience wasn't really nice. (https, long polling, web socket) issues and more.. We implemented a node.js extension for Parallel's Plesk. So Parallel Plesk users can host node applications. Check it here   That simply works on top of JXcore and proxy the things over nginx. If you have a chance to install this extension on plesk, you can simply focus on your node application instead all the tricky parts. 

However, soon we might open source this extension and you might even make it a standalone solution. There are many articles on node.js & nginx , for example


Reply all
Reply to author
Forward
0 new messages